On Windows 95/98 and Windows Millennium Editions, you are calling the method LogEvent(), but it fails because the wsh.log file is locked.
To correct this error
-
Unlock the wsh.log file if you the proper permissions or consult your system administrator.