winapi - How can I get HINSTANCE from a DLL? -


I have created a DLL in the VC ++ as a Windows project

DLLMAIN function

  BOOL APIENTRY DllMain (HMODULE H module, DWORD ul_reason_for_call, LPVOID lpReserved) {Return TRUE; }  

Now I need DLL's histories, which must be passed in Win32 functions.

Is HMODULE and Histin the same?

How does a quote from C / C ++ [1]

book through windows?

> note as it turns , HMODULE s and Hannenshin s are exactly the same thing. If the document indicates that a HMODULE is required for the function, you can pass HINSTANCE and vice versa. There are two data types because 16-bit Windows HMODULE s and Hunstens have identified different things

[1] Ritter


Comments