search for: getprocaddress

Displaying 20 results from an estimated 77 matches for "getprocaddress".

2001 Feb 15
0
FrameMaker 6.0 problem - further information
...retval=00000000 ret=4073f3e2 fs=008f trace:relay:PE_InitDLL CallTo32(entryproc=0x40843ed0,module=4083d000,type=1,res=0x1) Call kernel32.495: LoadLibraryA(408452e2 "COMCTL32.DLL") ret=40843ef9 fs=008f Ret kernel32.495: LoadLibraryA() retval=40787000 ret=40843ef9 fs=008f Call kernel32.372: GetProcAddress(40787000,00000154) ret=40843f1b fs=008f Ret kernel32.372: GetProcAddress() retval=407e4998 ret=40843f1b fs=008f Call kernel32.372: GetProcAddress(40787000,0000014c) ret=40843f35 fs=008f Ret kernel32.372: GetProcAddress() retval=407e4918 ret=40843f35 fs=008f Call kernel32.372: GetProcAddress(40787...
2001 Feb 20
1
I need some help for using wine
...3e2 fs=008f > trace:relay:PE_InitDLL > CallTo32(entryproc=0x40843ed0,module=4083d000,type=1,res=0x1) > Call kernel32.495: LoadLibraryA(408452e2 "COMCTL32.DLL") ret=40843ef9 fs=008f > Ret kernel32.495: LoadLibraryA() retval=40787000 ret=40843ef9 fs=008f > Call kernel32.372: GetProcAddress(40787000,00000154) ret=40843f1b fs=008f > Ret kernel32.372: GetProcAddress() retval=407e4998 ret=40843f1b fs=008f > Call kernel32.372: GetProcAddress(40787000,0000014c) ret=40843f35 fs=008f > Ret kernel32.372: GetProcAddress() retval=407e4918 ret=40843f35 fs=008f > Call kernel32.372:...
2007 Nov 13
1
win32-api idea - wide method first based on $KCODE
All, Currently, the Win32::API.new method will search for the function name, then the ''A'' (ANSI) name, and finally the ''W'' (Wide) name. The code looks something like this: fProc = GetProcAddress(hLibrary, TEXT(RSTRING(v_proc)->ptr)); if(!fProc){ VALUE v_ascii = rb_str_new3(v_proc); v_ascii = rb_str_cat(v_ascii, "A", 1); fProc = GetProcAddress(hLibrary, TEXT(RSTRING(v_ascii)->ptr)); if(!fProc){ VALUE v_unicode = rb_str_new3(v_proc); v_unicode = rb_s...
2020 Aug 18
2
Re: [PATCH nbdkit 1/9] server: Add libnbdkit.so.
On 8/18/20 8:53 AM, Richard W.M. Jones wrote: > On Tue, Aug 18, 2020 at 07:48:43AM -0500, Eric Blake wrote: >>> +extern int nbdkit_main (int argc, char *argv[]); >> >> A bit odd to declare this in a .c; but I don't see any existing >> decent .h to put it in, nor is it worth adding a new one just for >> this. So it is fine right here. > > Yup, better
2008 Jan 26
0
JRuby version of win32-api - initial try
...in32 module serves as a namespace only. module Win32 class API class Error < StandardError; end private KERNEL32 = com.sun.jna.NativeLibrary.getInstance(''kernel32'') LoadLibrary = KERNEL32.getFunction(''LoadLibraryA'') GetProcAddress = KERNEL32.getFunction(''GetProcAddress'') FormatMessageA = KERNEL32.getFunction(''FormatMessageA'') LocalFree = KERNEL32.getFunction(''LocalFree'') public VERSION = ''1.0.6'' attr_reader :fun...
2004 Oct 04
0
passing linux devices to a program in wine
...ne can't handle this yet. So I'm doing a little "research": When I run Netmeeting in normal windows with depndency walker i see this: LoadLibraryExA("C:\Program Files\31Netmeeting\dcap32.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned 0x6C000000 by thread 1. GetProcAddress(0x6C000000 [c:\program files\31netmeeting\DCAP32.DLL], "FindFirstCaptureDevice") called from "c:\program files\31netmeeting\CONF.EXE" at address 0x00442482 and returned 0x6C0018E0 by thread 1. GetProcAddress(0x6C000000 [c:\program files\31netmeeting\DCAP32.DLL], "FindFirstC...
2015 Aug 30
3
Compilation error with MinGW
...; static DenseSet<HMODULE> *OpenedHandles; >> >> @@ -39,13 +48,13 @@ static bool loadDebugHelp(void) { >> HMODULE hLib = ::LoadLibraryW(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, &...
2015 Aug 29
2
Compilation error with MinGW
...tic fpEnumerateLoadedModules fEnumerateLoadedModules; static DenseSet<HMODULE> *OpenedHandles; @@ -39,13 +48,13 @@ static bool loadDebugHelp(void) { HMODULE hLib = ::LoadLibraryW(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 Modul...
2020 Aug 19
0
Re: [PATCH nbdkit 1/9] server: Add libnbdkit.so.
...links to the import library. But there's a lower-level technique we could use instead: https://nachtimwald.com/2012/07/15/calling-functions-in-exe-from-plugins-in-windows/ https://stackoverflow.com/questions/770344/visual-c-linking-plugin-dll-against-exe#comment1772764_770374 This is to use GetProcAddress from the plugin (DLL) to get the address of symbols in nbdkit.exe. It works a bit like dlsym. I hacked together a test plugin to try this: static void load (void) { int (*_nbdkit_parse_int) (const char *what, const char *str, int *r) =...
2002 Feb 16
1
Proposed header file changes to allow for dynamic linking of DLLs at runtime
...know of another way to communicate the details of my proposed changes to the dev team. While writing RipTrax (a ripper + encoder program), I wanted to make all encoder DLLs dynamically linkable at runtime. I first check for the existence of the dll, open the library with Load Library and then do a GetProcAddress for each routine I plan to use. With the original header files, this was not possible. So I undertook to modify the headers I needed to provide the desired functionality. The enclosed headers provide two new aspects: 1) the selection of a either the standard LIB linkage process or the use of LoadL...
2006 Nov 27
1
R.DLL mapping by P/Invoke
....Cdecl)] < .Net 2.0 delegate void dgBusy(int which); #endregion #region <BDX Interops frm RPROXY.DLL> /* const string strBdxGetObject = "BDX_get_vtbl at 8"; /// <summary> /// PInvoke with automatic marshal on GetProcAddress to return dgScProxyGetObject function /// </summary> /// <param name="hModule">HMODULE of the RPROXY.DLL</param> /// <param name="procName">*MUST* be strScProxyGetObject</param> /// <returns></returns>...
2017 Feb 06
3
Kaleidoscope tutorial: comments, corrections and Windows support
...n prove me wrong. - "ready> sin(1.0);": On Windows, this fails with "LLVM ERROR: Program used external function '_sin' which could not be resolved!" because "DynamicLibrary::SearchForAddressOfSymbol" iterates over all loaded libraries and uses GetProcAddress to try getting the address. But for the old "msvcrt.dll" as well as the newer "ucrtbased.dll", the math functions are exported without a leading underscore. Additionally, LLVM provides some "explicit" symbols which would otherwise only exist in form of...
2007 Oct 17
0
Using R.dll in .NET IPC
....Cdecl)] < .Net 2.0 delegate void dgBusy(int which); #endregion #region <BDX Interops frm RPROXY.DLL> /* const string strBdxGetObject = "BDX_get_vtbl at 8"; /// <summary> /// PInvoke with automatic marshal on GetProcAddress to return dgScProxyGetObject function /// </summary> /// <param name="hModule">HMODULE of the RPROXY.DLL</param> /// <param name="procName">*MUST* be strScProxyGetObject</param> /// <returns></returns>...
2020 Apr 01
2
LLVM-C.dll in LLVM release 10 seem to be incomplete/missing export directory
Hello, I downloaded the LLVM 10 release for windows and noticed, that the LLVM-C.dll for x86 has a size of 9kb, which seems strangely small. Both, the dll for x86 and x64, have no export directory. It is not possible to link them statically to Delphi code or call GetProcAddress on them. I do remember that this worked initially when https://reviews.llvm.org/D56774 was done when compiling the dll using cmake+vs on windows. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200401/b15d6b...
2010 Oct 04
0
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
...se. LoadLibrary will link in a dynamic library if it is not already linked in, then calls GetModuleHandle on it, then returns what GetModuleHandle returns on that. GetModuleHandle by itself just looks in the linked in library list (of which the executable is part of), and returns a handle to it. GetProcAddress operates on that handle to return a function pointer. For example, from within the executable itself, if you want to link in something that is exported from itself, you can do this: export "C" { void printInt(int i) { printf("%i", i); } typedef void(*printIntType)(int); }...
2001 May 16
1
wine-20010510 fails to run?
...:Call kernel32.GetTickCount() ret=0046fc59 08067f18:Ret kernel32.GetTickCount() retval=0000149c ret=0046fc59 08067f18:Call kernel32.GetModuleHandleA(0047c32c "kernel32.dll") ret=0046de97 08067f18:Ret kernel32.GetModuleHandleA() retval=40601000 ret=0046de97 08067f18:Call kernel32.GetProcAddress(40601000,0047c339 "GetProcAddress") ret=0046dea4 08067f18:Ret kernel32.GetProcAddress() retval=40641e58 ret=0046dea4 08067f18:Call kernel32.GetProcAddress(40601000,0047c348 "Borland32") ret=0046deac 08067f18:Ret kernel32.GetProcAddress() retval=00000000 ret=0046deac 08...
2009 Feb 25
1
Might have a COM+ issue
...me of the COM is still debug mode, hence needing the development versions of mfc etc I ran dependencyWalker on appA on the windows machine and under wine. I compared the results, analysing the results is not easy however. I did find that under Wine i got many many lines that look like this: "GetProcAddress(0x7e860000 [WINEX11.DRV], "AbortDoc" called from "GDI32.DLL" at address 0x7ecc8a0a and returned NULL. Error: Procedure not found (127)." also: "GetProcAddress(0x7B820000 [KERNEL32.DLL], "IsTNT") called from "MSVBVM60.DLL" at address 0x73421BE1 and...
2010 Oct 04
1
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
>>> Any help will be much appreciated. Thanks! >> Windows does not support dynamic linking. You will need to resolve >> externals by hand. > > Why would it not support dynamic linking?  What about loadlibrary and > its kin are not sufficient to handle this? Well, you cannot easily export stuff from an executable and this is the main issue here. (And you cannot e.g.
2004 Sep 22
1
Problem compiling Corel-WINE
...asting "." and "DestroyIcon32" does not give a valid preprocessing token thunk.c:403:60: pasting "." and "UserSignalProc" does not give a valid preprocessing token This is the code: #define GETADDR( var, name ) \ *(FARPROC *)&Callout.##var = GetProcAddress( hModule, name ) GETADDR( PeekMessageA, "PeekMessageA" ); GETADDR( PeekMessageW, "PeekMessageW" ); GETADDR( GetMessageA, "GetMessageA" ); GETADDR( GetMessageW, "GetMessageW" ); GETADDR( SendMessageA, "SendMes...
2005 Feb 06
7
SHGetFolderPath and stuff
Hi all, I was taking another look at SHGetFolderPath() and related stuff today based on suggestions from Shanko and Zach. I think this would be fairly simple. My main question is, where do we put these values? Under File, Dir, or Shell? Or somewhere else? I vote Dir, since all the special CSIDL seem to be directories. Thus you would have something like: Dir::ADMINTOOLS Dir::BITBUCKET