search for: hmodule

Displaying 20 results from an estimated 39 matches for "hmodule".

Did you mean: module
2015 Aug 30
3
Compilation error with MinGW
...DLE,PENUMLOADED_MODULES_CALLBACK64,PVOID); >> +static const char* sEnumerateLoadedModules = "EnumerateLoadedModules64"; >> +typedef DWORD64 ModuleOffset; >> +#endif >> + >> static 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, "En...
2015 Aug 29
2
Compilation error with MinGW
...e typedef BOOL (WINAPI *fpEnumerateLoadedModules)(HANDLE,PENUMLOADED_MODULES_CALLBACK64,PVOID); +static const char* sEnumerateLoadedModules = "EnumerateLoadedModules64"; +typedef DWORD64 ModuleOffset; +#endif + static 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"); + ::GetProcAddre...
2007 Dec 05
21
Fwd: win32/process problem
Any ideas? ---------- Forwarded message ---------- From: Christian Kerth <christian.ke... at dynamicmedia.at> Date: Dec 5, 8:28 am Subject: win32/process problem To: comp.lang.ruby I have an application that consists of serveral independent parts. I want to use the Windows Process API to spawn the different processes. e.g. require ''rubygems'' require
2011 Aug 13
3
User32::MENU_CopySysPopup problem
When this code may fail? Code: /*********************************************************************** * MENU_CopySysPopup * * Return the default system menu. */ static HMENU MENU_CopySysPopup(BOOL mdi) { static const WCHAR sysmenuW[] = {'S','Y','S','M','E','N','U',0}; static const WCHAR sysmenumdiW[] =
2006 May 17
1
Need a little help with the pure Ruby win32-eventlog
Hi all, I''m working on the EventLog#read method for the pure Ruby version of win32-eventlog, but I''m stuck on the get_description private method. Here are the problems: * I don''t think I''m advancing the EVENTLOGRECORD properly between iterations. Take a look at the end of the "while dwread > 0" loop. I get some records, but not all of them.
2004 Sep 22
1
Problem compiling Corel-WINE
...uot; 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, "SendMessageA&quo...
2010 Oct 09
2
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
...ntf("%f\n", X);return 0;} >> > >> >  typedef void(*pfunc)(double); >> > >> > } >> > >> > adding in main() >> > >> > //typedef void(*pfunc)(double); >> > >> > pfunc printd; >> > >> > HMODULE self = GetModuleHandle(0); >> > >> > printd = (pfunc)GetProcAddress(self, "printd"); >> > >> > >> > >> > However I'm getting the same error message. It would be really great if >> > you >> > could point me to what...
2001 Dec 08
1
LoadOEMResource crash [Was: Re: Problem report: SHRINKER.ERR, fix to DEVICE_Open/CreateFileA? ]
...r=0x45f000, id=14, root=0x45f000) at pe_resource.c:83 #5 0x4009322e in find_entry_by_nameW (dir=0x45f000, name=0xe, root=0x45f000) at pe_resource.c:115 #6 0x400934b4 in PE_FindResourceW (hmod=4194304, name=0x4074c30e, type=0xe) at pe_resource.c:239 #7 0x40094083 in RES_FindResource2 (hModule=4194304, type=0xe "", name=0x4074c30e "", lang=0, bUnicode=1, bRet16=0) at resource.c:197 #8 0x40093f4d in RES_FindResource2 (hModule=182, type=0xe "", name=0x4074c30e "", lang=0, bUnicode=1, bRet16=0) at resource.c:171 #9 0x40094140 in RES_Find...
2002 Feb 12
2
problem with Vorbis DLL's
...on Win32. I'm able to use things properly by linking in the static libraries, but when I try to load them dynamically (which I really need to do), I get an access violation when calling ov_open. The code looks something like this... typedef int (*OVOPEN)(FILE*,OggVorbis_File*,char*,long); HMODULE hVorbisFile; OVOPEN hOvOpen; hVorbisFile = LoadLibrary(_T("Vorbisfile.DLL")); hOvOpen = (OVOPEN)GetProcAddress(hVorbisFile, _T("ov_open")); printf(filename, "music\\Track%02d.OGG", track_number); vorbis_fd = fopen(filename, _T("rb")); _setmode( _fil...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...n <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> [DllImport("kernel32.dll", CharSet = CharSet.Ansi, EntryPoint = "GetProcAddress")]...
2006 Dec 17
0
FormatMessage issue in eventlog.rb - more clues
...on this get_description failure and the mscoree.dll file. It has something to do with the way we''re calling FormatMessage(). Consider the following C code, which behaves exactly the same way as the current Ruby code: #include <windows.h> #include <stdio.h> int main(){ HMODULE hmod; int rv; char buf[4096]; char* dll = "C:\\WINDOWS\\system32\\mscoree.dll"; char* va_list[3]; int flags = FORMAT_MESSAGE_FROM_HMODULE | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ARGUMENT_ARRAY; hmod = LoadLibraryEx(dll, 0, LOA...
2007 Oct 17
0
Using R.dll in .NET IPC
...n <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> [DllImport("kernel32.dll", CharSet = CharSet.Ansi, EntryPoint = "GetProcAddress")]...
2010 Oct 09
0
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
...>> > typedef void(*pfunc)(double); > >> > > >> > } > >> > > >> > adding in main() > >> > > >> > //typedef void(*pfunc)(double); > >> > > >> > pfunc printd; > >> > > >> > HMODULE self = GetModuleHandle(0); > >> > > >> > printd = (pfunc)GetProcAddress(self, "printd"); > >> > > >> > > >> > > >> > However I'm getting the same error message. It would be really great > if > >> >...
2013 Aug 20
4
opusfile 0.4 release
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm pleased to announce the availability of opusfile v0.4. The opusfile and opusurl libraries provide a high-level API for decoding and seeking within .opus files on disk or over http(s). * https://ftp.mozilla.org/pub/mozilla.org/opus/opusfile-0.4.tar.gz * https://ftp.mozilla.org/pub/mozilla.org/opus/opusfile-0.4.zip *
2006 May 17
3
Need a little help with the pureRubywin32-eventlog
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Berger, Daniel > Sent: Wednesday, May 17, 2006 12:07 PM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Need a little help with the > pureRubywin32-eventlog > > > >
2005 Dec 27
0
can not setup ie and fonts problem
...32-bit rw- Backtrace: =>1 0x1157:0x0000 (0x1157:0x0000) 2 0x7fce138b K32WOWCallback16Ex+0xcb(vpfn16=0x0, dwFlags=0x2, cbArgs=0x0, pArg s=0x0, pdwRetCode=0x7fa3ea18) [/mylinux/download/System/wine-0.9.2/dlls/kernel/w owthunk.c:626] in kernel32 (0x7fce138b) 3 0x7fcafc64 NE_InitializeDLLs+0x174(hModule=0x113f) [/mylinux/download/System /wine-0.9.2/dlls/kernel/ne_segment.c:705] in kernel32 (0x7fcafc64) 4 0x7fcac911 MODULE_LoadModule16+0x941 [/mylinux/download/System/wine-0.9.2/dl ls/kernel/ne_module.c:1149] in kernel32 (0x7fcac911) 5 0x7fcad085 LoadModule16(name=0x716a3074, paramBlock=0xffffff...
2003 May 05
1
R-1.7.0: Rproxy.dll loadlibrary/freelibrary error (PR#2914)
...files SC-Proxy.h, Defn.h, Rinternals.h etc.. are to be included in the path - see StatConnector.cpp in the (D)COM server example) #include "windows.h" #include "stdio.h" #include "SC_Proxy.h" #define RDLL "Rproxy.dll" struct _SC_Proxy_Object* m_ProxyObject; HMODULE m_ProxyModule; #define SERVER_MAJOR_VERSION "1" #define SERVER_MINOR_VERSION "2" #define SCN_IERR_INTERFACENOTFOUND 0x81000000 #define SCN_IERR_LIBRARYNOTFOUND 0x81000001 #define SCN_IERR_INVALIDLIBRARY 0x81000002 #define SCN_IERR_INITIALIZATIONFAILED 0...
2004 Oct 14
0
More on the description problem in win32-eventlog
I think I''ve narrowed it down to this call in eventlog.h hModule = LoadLibraryEx( szExeFilePath, 0, DONT_RESOLVE_DLL_REFERENCES ); In all cases where the description is returning nil instead of actual text, this appears to be the culprit. I''ll do some more research. In the meantime, ideas welcome. :) Da...
2013 Aug 21
0
opusfile 0.4 release
...usfile libraries inside a folder inside the application's install path - "%PROGRAMFILES%\WinampNarf\opusfile" - and all seemed to be fine and dandy. However, if I try to load the new libopusurl-0.dll from the same folder as I have always done as with the other libraries, I get a NULL HMODULE handle from LoadLibraryW and GetLastError() return error code 126 - "The specified module could not be found." I then redid my code to load the libraries from the same folder as the application executable instead and it loaded this time. I'm assuming that "libopusurl-0.dll is l...
2013 Aug 21
1
opusfile 0.4 release
On 20/08/13 08:38 PM, alpha thinktink wrote: > However, if I try to load the new libopusurl-0.dll from the same folder > as I have always done as with the other libraries, I get a NULL HMODULE > handle from LoadLibraryW and GetLastError() return error code 126 - "The > specified module could not be found." In addition to what Tim said, do you get the same error loading libopusfile-0.dll, or is it just libopusurl? Could it be an ordering problem? -r