Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to write to the event log - How to?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00588684
Message ID:
00588693
Views:
28
>>Can somebody please tell me the steps I have to take to write messages to the NT/2000 event log.
>>
>>I'm not very well versed in API stuff, so if you have an example or two I'd be truly grateful.
>>
>>TIA
>
>If the Windows Script Host is an option, see MSKB#Q257541. It shows how to write to the log from within VFP.


Hi George,

Well, yes and no- does it come with NT 4.0 & Win2K and is it installed by default?

I have tried the code in the above example and it works fine, except the source is given as WSH, and it would be nice if it were MyApp instead.

Another question: If one had access to a DLL where this functionality is implemented, how is such a DLL loaded and it's methods called from VFP?

Is it in fact possible to do that?
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform