Before "searching on google for a solution" you must first read the documentation about the Win32 function you 'll be going to use:
https://docs.microsoft.com/en-us/win...tmodulehandlea
It is very clear that GetModuleHandle returns not a Boolean value but HMODULE!
Return value
If the function succeeds, the return value is a handle to the specified module.

If the function fails, the return value is NULL. To get extended error information, call GetLastError.