search for: getlasterror

Displaying 20 results from an estimated 160 matches for "getlasterror".

2008 Dec 18
5
EverQuest - worked once, but no more
...e's what I got back: > 0009:Ret KERNEL32.SetLastError() retval=00000002 ret=005bc285 > 0009:Call KERNEL32.GetFullPathNameA(0032fce4 "p.dat",00000104,0032f630,0032f5fc) ret=005c3afc > 0009:Ret KERNEL32.GetFullPathNameA() retval=00000025 ret=005c3afc > 0009:Call KERNEL32.GetLastError() ret=005bc221 > 0009:Ret KERNEL32.GetLastError() retval=00000002 ret=005bc221 > 0009:Call KERNEL32.FlsGetValue(00000000) ret=005bc22f > 0009:Ret KERNEL32.FlsGetValue() retval=00bf0128 ret=005bc22f > 0009:Call KERNEL32.SetLastError(00000002) ret=005bc285 > 0009:Ret KERNEL32.SetLas...
2004 Jul 31
3
Bug in new_work_item
Hi all, Windows 2000 Ruby 1.8.2 R7 VC++ 6.0 I noticed that if I try to call new_work_item and give the task a name that already exists, I get a segfault: C:\eclipse\workspace\win32-taskscheduler>ruby test.rb "0.1.0" test.rb:22:in `new_work_item'': NewWorkItem() function failed (Win32::TaskSchedul erError) from test.rb:22 test.rb:22: [BUG] Segmentation fault ruby
2001 Mar 15
1
starcraft install wierdness.
...hy this message occurs. trace+file does not reveal information I see as relevant. trace+relay has this to show: Call kernel32.185: CreateDirectoryA(405d682c "D:\\",00000000) ret=00401ac6 fs=008f Ret kernel32.185: CreateDirectoryA() retval=00000000 ret=00401ac6 fs=008f Call kernel32.421: GetLastError() ret=00401ad6 fs=008f Ret kernel32.421: GetLastError() retval=000000b7 ret=00401ad6 fs=008f Call kernel32.406: GetFileAttributesA(405d682c "D:\\") ret=00401aef fs=008f Ret kernel32.406: GetFileAttributesA() retval=00000010 ret=00401aef fs=008f Call kernel32.185: CreateDirectoryA(405d68...
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
...URE; + } + + return EXIT_SUCCESS; +} -VOID +VOID SvcInstall() { - SC_HANDLE schSCManager; - SC_HANDLE schService; - TCHAR szPath[MAX_PATH]; - - if ( - !GetModuleFileName( - NULL, - szPath, - MAX_PATH - ) - ) { - printf("Cannot install service (%d)\n", (int) GetLastError()); - return; - } - - schSCManager = OpenSCManager( - NULL, - NULL, - SC_MANAGER_ALL_ACCESS - ); - + SC_HANDLE schSCManager; + SC_HANDLE schService; + TCHAR szPath[MAX_PATH]; + + if ( + !GetModuleFileName( + NULL, + szPath, + MAX_PATH +...
2006 Aug 21
1
[ win32utils-Bugs-5479 ] Incorrect SetLastError declarations
...Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Incorrect SetLastError declarations Initial Comment: windows-pr-0.5.3 lib\windows\error.rb SetLastError = Win32API.new(''kernel32'', ''GetLastError'', ''L'', ''V'') SetLastErrorEx = Win32API.new(''kernel32'', ''GetLastError'', ''LL'', ''V'') Should import SetLastError instead of GetLastError. ------------------------------------------...
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()
2011 Jan 07
0
Wine release 1.3.11
...kernel32: Improve parameter validation for FillConsoleOutputAttribute. reg: Accept full names of the standard registry hives. Andr? Hentschel (31): setupapi/tests: Better clean up if SetupUninstallOEMInf fails. setupapi/tests: Don't test function directly when reporting GetLastError(). jscript: Update German translation. ntdll/tests: Don't test function directly when reporting GetLastError(). advapi32/tests: Even more tests for the merged view of HKCR. setupapi/tests: Don't test function directly when reporting GetLastError(). dsound/tests...
2007 Sep 25
2
Bug in win32-api with void prototypes?
...ototype requires an explicit argument in our version of win32/api: C:\>irb irb(main):001:0> require ''win32/api'' => true irb(main):002:0> include Win32 => Object irb(main):003:0> require ''Win32API'' => true # Our version irb(main):004:0> GetLastErrorA = API.new(''GetLastError'', ''V'', ''L'', ''kernel32'') => #<Win32::API:0x2db6314> # Old version irb(main):005:0> GetLastErrorB = Win32API.new(''kernel32'', ''GetLastError'', ''V...
2001 Feb 14
0
ASPI problem
...y much as it should (but no drag'n drop works). Writing a CD does however not work yet and it appears to be a winaspi problem: Here is part of the trace: fixme:aspi:GetASPI32Buffer (0x4995cc20), stub ! Ret wnaspi32.8: GetASPI32Buffer() retval=00000001 ret=64909d90 fs=0ccf Call kernel32.340: GetLastError() ret=7800385f fs=0ccf Ret kernel32.340: GetLastError() retval=00000002 ret=7800385f fs=0ccf Call kernel32.693: TlsGetValue(00000001) ret=7800386d fs=0ccf Ret kernel32.693: TlsGetValue() retval=49a58de0 ret=7800386d fs=0ccf Call kernel32.654: SetLastError(00000002) ret=7800387e fs=0ccf Ret kerne...
2018 Jan 16
3
Windows TAP driver issues
Thanks for the info, that is very helpful. It does look like that change got back-ported to master, albeit in a different form. I'll take a look at how OpenVPN does its windows device I/O. - todd
2007 Oct 08
1
Getting an actual system error
Heya all, I don''t think I''ve been paying attention. When a Windows API function fails, I could have been doing this: raise SystemCallError(GetLastError()) Instead of this: # Where ''Error'' is nested under the current class. raise Error, get_last_error I''m not sure how big of a deal this is in practice, however, or if it''s even preferred for our purposes. Regards, Dan This communication is the property of Q...
2013 Aug 21
2
[PATCH 1/3] Rationalise whitespace to 4 space indentation with no trailing spaces
...URE; + } + + return EXIT_SUCCESS; +} -VOID +VOID SvcInstall() { - SC_HANDLE schSCManager; - SC_HANDLE schService; - TCHAR szPath[MAX_PATH]; - - if ( - !GetModuleFileName( - NULL, - szPath, - MAX_PATH - ) - ) { - printf("Cannot install service (%d)\n", (int) GetLastError()); - return; - } - - schSCManager = OpenSCManager( - NULL, - NULL, - SC_MANAGER_ALL_ACCESS - ); - + SC_HANDLE schSCManager; + SC_HANDLE schService; + TCHAR szPath[MAX_PATH]; + + if ( + !GetModuleFileName( + NULL, + szPath, + MAX_PATH +...
2001 Apr 03
1
UnhandledExceptionFilter
...211f7 fs=008f Call advapi32.31: CryptAcquireContextA(405f5c28,00000000,00000000,00000001,f0000008) ret=0042120a fs=008f fixme:advapi:CryptAcquireContextA (0x405f5c28, (null), (null), 1, f0000008): stub! Ret advapi32.31: CryptAcquireContextA() retval=00000000 ret=0042120a fs=008f Call kernel32.421: GetLastError() ret=00421212 fs=008f Ret kernel32.421: GetLastError() retval=00000006 ret=00421212 fs=008f Call ntdll.493: RtlRaiseException(405f5828) ret=407ec056 fs=008f Call kernel32.858: UnhandledExceptionFilter(405f555c) ret=00453d8e fs=008f err:seh:UnhandledExceptionFilter Couldn't start debugger (drw...
2004 Jan 22
1
code cleanup suggestion - error classes
Currently, most of the modules define an error class of some sort (e.g. cWin32ServiceError). Within the code, the error is raised like this: rb_raise(cWin32ServiceError,ErrorDescription(GetLastError())); It seems logical that, instead of appending the message every time, that we should simply call ErrorDescription(GetLastError()) simply by raising an error (i.e. within the ''initialize'' method of cWin32ServiceError). In other words, you would simply have to do: rb_raise(cWin...
2007 Jan 09
0
Wine release 0.9.29
...pport for derived types in codeview type info. Felix Nawothnig (1): treeview: Initialize iImage and iSelectedImage with zero. Francois Gouget (38): rsabase/tests: Remove unneeded casts. itss: Fix spelling of the dwOrigin variables. kernel32/tests: Use '%d' to print GetLastError(). ws2_32/tests: Use '%d' to print GetLastError(). Assorted spelling fixes. qcap: Print GetLastError() in decimal with '%u'. urlmon: Print GetLastError() in decimal with '%u'. quartz: Use '%u' to print GetLastError(). advapi32: Rem...
2006 Dec 07
0
Fwd: win32-service problems with patch
...hould we give ruby to clean up? - // right now we give it forever :-) - while (WaitForSingleObject(hStopCompletedEvent, 500) == WAIT_TIMEOUT) - { - SetTheServiceStatus(dwState, NO_ERROR, 0, 0); + if (!SetEvent(hStopEvent)) { + SetTheServiceStatus(SERVICE_STOPPED, GetLastError(), 0, 0); } - - if (!SetEvent(hStopEvent)) - ErrorStopService(); - // Raise an error here? } } @@ -239,46 +227,82 @@ // Send status of the service to the Service Controller. if(!SetServiceStatus(ssh, &ss)){ - ErrorStopService(); + SetEvent(hS...
2007 Oct 09
5
Playing with ReadFileScatter()
...RATOR) handle = CreateFile( file, GENERIC_READ, FILE_SHARE_READ, nil, OPEN_EXISTING, FILE_FLAG_OVERLAPPED | FILE_FLAG_NO_BUFFERING, nil ) if handle == INVALID_HANDLE_VALUE raise SystemCallError.new(GetLastError()) end sysbuf = 0.chr * 40 GetSystemInfo(sysbuf) page_size = sysbuf[8,4].unpack(''L'')[0] # dwPageSize file_size = File.size(file) # FILE_SEGMENT_ELEMENT fse_struct = (0.chr * page_size) + (0.chr * 8) # Buffer + Align. seg...
2005 Nov 26
1
Another patch of win32-service for nice startup.
...vice main - hThread = CreateThread(NULL,0,ThreadProc,0,0,&ThreadId); - if(hThread == INVALID_HANDLE_VALUE){ + // Create the event to signal the service to start. + hStartEvent = CreateEvent(NULL, TRUE, FALSE, NULL); + if(hStartEvent == NULL){ strcpy(error,ErrorDescription(GetLastError())); ErrorStopService(); rb_raise(cDaemonError,error); @@ -257,11 +268,20 @@ rb_raise(cDaemonError,error); } - // Wait for SERVICE_RUNNING - while(dwServiceState != SERVICE_RUNNING){ - sleep(10); + // Create Thread for service main + hThread = CreateT...
2004 Nov 21
3
win32-file, overlapped added
Hi all, I''ve got overlapped and offset support in both nread and nwrite. The only thing left before I want to release this (as 0.4.0) is to get NO_BUFFERING to work. Unfortunately, I can''t get it to work. Park, I looked at that site you sent (and borrowed some code from it), but I don''t see anything special happening for NO_BUFFERING. I thought it required
2009 Jan 27
2
Package (PR#13475)
Full_Name: Partho Bhowmick Version: 2.8.1 OS: Windows XP Submission from: (NULL) (199.43.48.131) While trying to install package sn (I have tried multiple mirrors), I get the following message trying URL 'http://www.revolution-computing.com/cran/bin/windows/contrib/2.8/sn_0.4-10.zip' Content type 'application/zip' length 320643 bytes (313 Kb) opened URL downloaded 313 Kb