Displaying 3 results from an estimated 3 matches for "win32_elmcb_pcstr".
2011 Nov 02
3
[LLVMdev] [PATCH] LLVM 3.0 broken in lib/Support/Windows/DynamicLibrary.inc
...ry.inc b/lib/Support/Windows/DynamicLibrary.inc
index 83da82a..dba81b4 100644
--- a/lib/Support/Windows/DynamicLibrary.inc
+++ b/lib/Support/Windows/DynamicLibrary.inc
@@ -43,10 +43,34 @@ static DenseSet<HMODULE> *OpenedHandles;
extern "C" {
- static BOOL CALLBACK ELM_Callback(WIN32_ELMCB_PCSTR ModuleName,
- ULONG_PTR ModuleBase,
+// Use old callback if:
+// - Not using Visual Studio
+// - Visual Studio 2005 or earlier but only if we are not using the Windows SDK
+// or Windows SDK version is older than 6.0
+// Use new callback if:
+// - Newer Visu...
2015 Aug 30
3
Compilation error with MinGW
...rateLoadedModules)
>> - ::GetProcAddress(hLib, "EnumerateLoadedModules64");
>> + ::GetProcAddress(hLib, sEnumerateLoadedModules);
>> }
>> return fEnumerateLoadedModules != 0;
>> }
>>
>> static BOOL CALLBACK
>> -ELM_Callback(WIN32_ELMCB_PCSTR ModuleName, DWORD64 ModuleBase,
>> +ELM_Callback(WIN32_ELMCB_PCSTR ModuleName, ModuleOffset ModuleBase,
>> ULONG ModuleSize, PVOID UserContext) {
>> OpenedHandles->insert((HMODULE)ModuleBase);
>> return TRUE;
>>
>> _________________________...
2015 Aug 29
2
Compilation error with MinGW
...elp.dll");
if (hLib) {
fEnumerateLoadedModules = (fpEnumerateLoadedModules)
- ::GetProcAddress(hLib, "EnumerateLoadedModules64");
+ ::GetProcAddress(hLib, sEnumerateLoadedModules);
}
return fEnumerateLoadedModules != 0;
}
static BOOL CALLBACK
-ELM_Callback(WIN32_ELMCB_PCSTR ModuleName, DWORD64 ModuleBase,
+ELM_Callback(WIN32_ELMCB_PCSTR ModuleName, ModuleOffset ModuleBase,
ULONG ModuleSize, PVOID UserContext) {
OpenedHandles->insert((HMODULE)ModuleBase);
return TRUE;