Using the function LoadLibraryEx included client.dll library. I need to get the address of the client.dll file using the GetModuleHandle function.
HMODULE library = LoadLibraryEx("D://libs//client.dll",NULL, LOAD_LIBRARY_AS_DATAFILE); GetModuleHandle (??);
As I include the library variable in the arguments of the getmodulehandle function, it just won't work, because the data type is completely different and gives an error. Or maybe I misunderstood something, and after LoadLibraryEx you do not need to use getmodulehandle.
GetModuleHandle? You came fromHMODULELoadLibraryEx. - VladDLOAD_LIBRARY_AS_DATAFILE? For what purpose do you need a library? - VladDGetModuleHandleandLoadLibraryEx? Quote: GetModuleHandle function Retrieves a module handle for the specified module. The module must have been loaded by the calling process. Return Value: This is a handle to the specified module. - VladD