News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Error I/O pending error

Started by Magnum, August 16, 2010, 11:19:37 PM

Previous topic - Next topic

Magnum

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

Have a great day,
                         Andy

dedndave

it wants the handle itself - not a pointer
invoke ClearEventLog,Hndl,NULL

Magnum

Have a great day,
                         Andy