search for: elm_callback

Displaying 7 results from an estimated 7 matches for "elm_callback".

2015 Aug 30
3
Compilation error with MinGW
...es = (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; >> >> _______...
2015 Aug 29
2
Compilation error with MinGW
...W(L"Dbghelp.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;
2011 Nov 02
3
[LLVMdev] [PATCH] LLVM 3.0 broken in lib/Support/Windows/DynamicLibrary.inc
.../DynamicLibrary.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:...
2007 Nov 07
4
[LLVMdev] LLVM 2.1 with VC++
I've come across a couple errors when building LLVM 2.1 in VC++ 2005. 1) CodeGen/RegisterCoalescer.cpp is not included in the project 2) System/Win32/DynamicLibrary.inc - ELM_Callback is declared with a PSTR ModuleName argument. This causes a compile error - the callback typedef specifies PCSTR. Also, I'd like to suggest adding the following to config.h, to eliminate the spurious deprecation warnings: #define _CRT_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_WARNINGS #define...
2008 Feb 21
1
[LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio 2005?
...sual Studio 2005? >To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > >Hi there, > >Did anyone try VS2008/Vista? There would a compile error (LLVM >2.1/2.2) at Line 126 in the file DynamicLibrary.inc. >// EnumerateLoadedModules(GetCurrentProcess(), ELM_Callback, 0); >Maybe MS changed the parameter type in the latest platform SDK. > >A simple workaround. At line 47 in the same file DynamicLibrary.inc, >// static BOOL CALLBACK ELM_Callback(PSTR ModuleName, ... >change PSTR to PCSTR, and everything is OK. > >I don't know if this wo...
2008 Feb 12
3
[LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio 2005?
Hello all, Is there anyone has tried LLVM 2.1 on Visual Studio 2005? I did but not succeed due to some build errors. I seem to remember I read somewhere on this list it's compiled on VS2005 so I wonder... Have a good night. Thx, Seung
2009 Apr 08
0
[LLVMdev] DynamicLibrary.inc compile error /w vc++2005 and windows sdk 6.1
...ing llvm with vc++ 2005 and windows sdk6.1. It seems that the Platform SDK supplied with vc++2005 uses PSTR for the first param of PENUMLOADED_MODULES_CALLBACK64 typedef (dbghelp.h) and the windows sdk 6.1 (also windows sdk 6.0a that ships with vc++2008) uses PCSTR. The _MSC_VER macro guard for ELM_Callback(...) kinda kills the possibility of using VC++2005 with SDK 6.1 and without the macro guard, one will require to have SDK6.0A+ setup with vc++2005. Is there any known workaround to this issue? 1>d:\dev\llvm\lib\system\Win32/DynamicLibrary.inc(116) : error C2664: 'EnumerateLoadedModules&...