Where are the Windows API functions defined?

when you need to use a function, you include the header file, but does the function code define it?

+3
source share
3 answers

Dave, the code lives in different and many DLL files in the Windows \ system32 directory.

+5
source

The actual code that implements the Win-32 API is defined in various DLLs on your system. These DLLs have names such as kernel32.dll, comctl32.dll, etc. You will find them in C: \ Windows \ System32.

What usually happens is that you bind your code to kernel32.lib, etc., which has a little code to dynamically load the DLL when your program starts. This allows Win32 API functions to access DLLS directly.

+4

, , Microsoft. msdn http://msdn.microsoft.com. API . :

Minimum supported client
Minimum supported server
header
Library
DLL
names Unicode and ANSI

+1
source

Source: https://habr.com/ru/post/1734070/


All Articles