I'm just learning how to create a dll with C++.
There appears this :
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
And I can not understand what is "WINAPI"
in DllMain()
?
I know that a function is :
typeReturn functionName (params) { function body }
typeReturn
: is the value that function returns,
functionName
: is the name of the function,
params
: are the parameters for the function,
{function body} : is the code inside in the function.
...
Then, following the explanation, what does WINAPI
mean in C++ that or __stdcall
?
I'm not asking what means WINAPI
itself.
************ UPDATE **************
C++ has (calling conventions) that is used to put in memory each parameter given in a special way. please read correctly the question and avoid mark it as duplicate, because people learning c/c++ needs learn without fall into confusions