Init error ( 65544)

When i use glfwInit() i got this error
65544: Win32: Failed to retrieve own module handle.
Im compiling my files to .dll file and next injecting it.
Version of glfw - 3.4

The function glfwInit() will fail with this error on Windows due to GetModuleHandleExW failing to find the module which the glfwInit() function is part of. If you are ‘cloaking’ the DLL to prevent it from being found then this could be the reason it fails.

Since DLL injection is frequently used by hackers trying to add game overlays for cheating I will not provide further help.

OH, okey. Thx. Any function witch will return me same efect and will work with .dll ?