c++ Programming Glossary: hmodule
Finding current executable's path without /proc/self/exe http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe readlink proc curproc file Windows GetModuleFileName with hModule NULL The portable but less reliable method is to use argv 0..
reading an application's manifest file? http://stackoverflow.com/questions/420852/reading-an-applications-manifest-file manifest... BOOL CALLBACK EnumResourceNameCallback HMODULE hModule LPCTSTR lpType LPWSTR lpName LONG_PTR lParam HRSRC hResInfo.. LPWSTR lpName LONG_PTR lParam HRSRC hResInfo FindResource hModule lpName lpType DWORD cbResource SizeofResource hModule hResInfo.. hModule lpName lpType DWORD cbResource SizeofResource hModule hResInfo HGLOBAL hResData LoadResource hModule hResInfo const..
How do I get the HMODULE for the currently executing code? http://stackoverflow.com/questions/557081/how-do-i-get-the-hmodule-for-the-currently-executing-code question HMODULE GetCurrentModule NB XP solution HMODULE hModule NULL GetModuleHandleEx GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS..
Delphi problems converting VirtualProtect EAT hook routines from C to Delphi http://stackoverflow.com/questions/9484319/delphi-problems-converting-virtualprotect-eat-hook-routines-from-c-to-delphi bool eat_hook void old_function void new_function HMODULE hModule GetModuleHandleEx GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS LPCSTR.. GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS LPCSTR old_function hModule PIMAGE_DOS_HEADER DosHeader PIMAGE_DOS_HEADER hModule PIMAGE_NT_HEADERS.. hModule PIMAGE_DOS_HEADER DosHeader PIMAGE_DOS_HEADER hModule PIMAGE_NT_HEADERS NtHeader ByteOffset IMAGE_NT_HEADERS DosHeader..
Win32 API to enumerate dll export functions? http://stackoverflow.com/questions/1128150/win32-api-to-enumerate-dll-export-functions by LoadLibraryEx points right at it. #include winnt.h HMODULE lib LoadLibraryEx library.dll NULL DONT_RESOLVE_DLL_REFERENCES..
Are there any way to link my program with Wine-compiled part? http://stackoverflow.com/questions/2617468/are-there-any-way-to-link-my-program-with-wine-compiled-part stdio.h #include windows.h int main int argc char argv HMODULE h h LoadLibrary cards.dll printf d n h Execution winegcc m32..
Calling a non-exported function in a DLL http://stackoverflow.com/questions/2918234/calling-a-non-exported-function-in-a-dll This will get the DLL base address which can vary HMODULE hMod GetModuleHandle My.dll Calcualte the acutal address DWORD_PTR..
Embed Text File in a Resource in a native Windows Application http://stackoverflow.com/questions/2933295/embed-text-file-in-a-resource-in-a-native-windows-application int name int type DWORD size const char data HMODULE handle GetModuleHandle NULL HRSRC rc FindResource handle MAKEINTRESOURCE..
reading an application's manifest file? http://stackoverflow.com/questions/420852/reading-an-applications-manifest-file its own manifest... BOOL CALLBACK EnumResourceNameCallback HMODULE hModule LPCTSTR lpType LPWSTR lpName LONG_PTR lParam HRSRC hResInfo.. _tmain int argc _TCHAR argv const TCHAR pszFileName argv 0 HMODULE hModule LoadLibraryEx pszFileName NULL LOAD_LIBRARY_AS_DATAFILE..
EXE or DLL Image base address http://stackoverflow.com/questions/4298331/exe-or-dll-image-base-address own process you can use GetModuleHandle . It returns a HMODULE but that is the same as HINSTANCE and the base address . If..
How do I get the HMODULE for the currently executing code? http://stackoverflow.com/questions/557081/how-do-i-get-the-hmodule-for-the-currently-executing-code do I get the HMODULE for the currently executing code I have a static library that.. . At runtime I want ony of my library functions to get the HMODULE for whatever thing the static library code has been linked into... use the following trick inspired from this forum const HMODULE GetCurrentModule MEMORY_BASIC_INFORMATION mbi 0 VirtualQuery..
How to Log Stack Frames with Windows x64 http://stackoverflow.com/questions/590160/how-to-log-stack-frames-with-windows-x64 PVOID PULONG 0 if s_pfnCaptureStackBackTrace 0 const HMODULE hNtDll GetModuleHandle ntdll.dll reinterpret_cast void s_pfnCaptureStackBackTrace..
Run-Time Check Failure #0 loading QueryFullProcessImageName from kernel32.dll http://stackoverflow.com/questions/696306/run-time-check-failure-0-loading-queryfullprocessimagename-from-kernel32-dll gets called on vista bool LoadQueryFullProcessImageName HMODULE hDLL LoadLibrary kernel32.dll if hDLL return 0 Now use pointer..
Delphi problems converting VirtualProtect EAT hook routines from C to Delphi http://stackoverflow.com/questions/9484319/delphi-problems-converting-virtualprotect-eat-hook-routines-from-c-to-delphi offset bool eat_hook void old_function void new_function HMODULE hModule GetModuleHandleEx GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS.. false bool iat_hook void old_function void new_function HMODULE hModule DWORD sizeNeeded if 0 EnumProcessModules GetCurrentProcess.. old_function new_function pointer boolean var Module HMODULE DosHeader PImageDosHeader NtHeaders PImageNtHeaders ExportDirectory..
|