The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Magnum on August 16, 2010, 11:19:37 PM

Title: Error I/O pending error
Post by: Magnum on August 16, 2010, 11:19:37 PM
I am trying to clear the system log but I get an "Error I/O pending".


.DATA

Log  db   "system",0
Hndl dd   0

.CODE

%Date       db " &@Date" ; Compile date

start:

invoke OpenEventLog,NULL,addr Log
mov  Hndl,eax

invoke ClearEventLog,addr Hndl,NULL

Title: Re: Error I/O pending error
Post by: dedndave on August 17, 2010, 12:59:17 AM
it wants the handle itself - not a pointer
invoke ClearEventLog,Hndl,NULL
Title: Re: Error I/O pending error
Post by: Magnum on August 17, 2010, 01:33:34 AM
Thanks a lot.