Windows API (application programming interfaces) Windows Windows NT . Windows. , Windows API, SDK, Platform SDK , , .
Windows API , C ( C++). Windows API . , , Windows Windows Driver Model.
API :
Win16 Windows API 16- Windows. Windows API, Win16 Win32.
Win32s Win32, 16- Windows 3.x Win32 API .
Win32 32- API Windows. . API DLL kernel32.dll advapi32.dll; GUI user32.dll gdi32.dll. Win32 Windows NT ( ) Windows 9x. Windows, Windows NT, Win32 GUI : csrss.exe (Client/Server Runtime Subsystem), , win32k.sys . Win32 API - ntoskrnl.exe
Win64 64- Win32, 64- . Win64 API 64- Windows XP, Windows Server 2003, Windows Vista Windows Server 2008.
I - API, () , ( ). , API Crea t eProcess Windows ;
- (undocumented) , . Win32 API .
(dynamic-link libraries, DLL) Windows, ec . DLL Windows API. DLL: Kernel32.dll ( , ), User32.dll ( , , ) GDI32.dll ( ).
|
|
Windows DLL, . , AdvAPI32.dll , , ComDlg32.dll ~ ( File Open File Save), a ComCrl32 dll .
API- Win32, :
- DLL (, USER32.DLL), API-, , ;
- API-, , , Win32 ( DLL, );
- API-, , . , , API- CreateProcess NTCreateProcess . NTDLL.DLL, .
(COM). COM .
Windows . (kernel object) - , , Windows. :
- Process ;
- Thread ;
- File ;
- File-mapping (memory-mapped file), , ;
- Pipe ;
- Event , ;
- Mutex , ;
- Semaphore , .
, GDI, , , , .
, .
, Windows API , . (encapsulation), . I (CreateProcess, GreateThread, CreateFile GreateFileMapping), . API- , .
(process-specific). , . , ID , , - - .
|
|
Windows, , ( ). . , , , , .
(usage count) . , , . , , , (close) ( API- CloseHandle), , - .
, , . , GDI..