Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NT Event Logging
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00191462
Message ID:
00191494
Views:
24
>Does anyone know of a freely available DLL or ? which will
>support writing to the NT Event Log from within VFP?
>

I haven't tried using them from VFP, but you might look into implementing LogEvent() or ReportEvent() from the API. My guess is that you'll have more success with ReportEvent(), although there's more to the API call, it doesn't rely on having a valid resource handle. You'll need something like POINTERS or CLSHEAP to manage the *lpStrings and lpRawData members passed to the API call, and you'd probably be better off writng a C-style .DLL as a wrapper, or implementing an OLE Automation object in C++ or Java (I'd look at VJ++, because of some of the native WFC classes available to access the event log there.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform