11/12/2022 0 Comments Auto dll injector 64 bitLater I found out that I want to use dialog resources in the DLL and CreateDialog()Īlso requires a module handle to get the dialog resources from the DLL. I had to write my own GetProcAddress() because the windows version didn't work with my DLLs. This address to the functions but it didn't work because windows checks whether this handle is really a handle and not only the contents of memory! This makes using manually loaded DLLs a bit harder! I wrote the code that performed these steps but then quickly found out something is not OK: This loaded DLL doesn't have a valid HMODULE/ HINSTANCE handleĪnd many windows functions expect you to specify one (for example, GetProcAddress(), CreateDialog(), and so on.).Īctually the HINSTANCE handle of a module is nothing more than the address of the DOS/PE header of the loaded DLL in memory. Calling its entrypoint (if present) with the DLL_PROCESS_ATTACH parameter.Resolving the dependencies of the DLL, loading other DLLs needed by this DLL and resolving the offset of the needed functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |