Displaying 5 results from an estimated 5 matches for "format_message_from_hmodul".
Did you mean:
format_message_from_hmodule
2006 Dec 17
0
FormatMessage issue in eventlog.rb - more clues
...he 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, LOAD_LIBRARY_AS_DATAFILE);
printf("HMOD: %i\n", hmod);
va_list[0] = "store application started";
rv = FormatMessage(
flags,...
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
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.
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
>
>
> >
2006 Dec 14
11
Tweak to win32-eventlog
All,
I got a bug report from Greg Holmes where the description wasn''t being
returned properly. At the moment, if there''s no event associated with
the event id, then the description is empty.
However, it turns out that there can still be associated information
about the event. So, I propose the following tweak to the
get_description private method:
# If FormatMessage()