Home > Article > Operation and Maintenance > Win32 SDK Basics (1) Detailed explanation of Windows program classification and directories where libraries and header files are located
Windows Dos program does not have its own window and needs to use the Dos window for user interaction. The main function:
int main() { return 0; }
Visible programs under the windows system basically belong to this kind, including word, excel, etc., main function :
int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)
{...}
depends on the host program to call and execute, and cannot be executed by itself. The host program will only enter the memory after calling the interface. Function:
BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) {...}
has no entry function and cannot be executed, so it cannot be entered into the memory. The host function reads the code directly from the hard disk. Then copy a copy of the code into your own process.
is used to translate the source code into the directory where the target code
is located:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe
2. Connector LINK.exe
is used to connect the target code and library to generate the final file.
Directory:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\LINK.exe
3. Resource compiler RC.exe
The function is to compile the resources and finally save them into the final file through the connector
Directory (under vs2015)::
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\x64\RC.exe
provides thread, process, and memory management etc. Core API
provides window, message and other API
provides API of drawing
The path of the above three libraries:
C:\Windows\System32
windows’data type
contains kernel32 .dll all API declarations
contains all gdi32.dll API declarations
contains The API declarations of all user32.dll
contain support for UNICODE character set
A collection of all windows header files
The directory where all the above header files are located (under vs2015):
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include\
The above is the detailed content of Win32 SDK Basics (1) Detailed explanation of Windows program classification and directories where libraries and header files are located. For more information, please follow other related articles on the PHP Chinese website!