Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2001, 11:44 PM
Elscampie Elscampie is offline
Junior Member
 
Join Date: Jan 2001
Posts: 23
Default How can I Log a message in the EventViewer of Winnt?

How can I Log a message in the EventViewer of Winnt?
with ReportEvent i can create log-msg,
1. The description is always "The description was not found...insertion strings:..."
2. How can I use the pointer to UserSecID?


ReportEvent(hEventLog,wType,wCategory,dwEventID,lp UserSid,wNumStrings,dwDataSize,lpStrings,lpRawData )
Reply With Quote
  #2  
Old 01-08-2001, 06:29 AM
pascal.enz pascal.enz is offline
Member
 
Join Date: Jan 2001
Posts: 73
Default RE: How can I Log a message in the EventViewer of Winnt?

I never worked directly with the Windows NT event log. But I worked with a component called NTSet (available on Delphi Pages), which allows you to read from and write to the log very easy. If you don't want to use other components, so take a look to the following article from the Delphi Informant Magazine:

http://www.delphizine.com/features/1998/10/di199810th_f/di199810th_f.asp

Hope it helps...
Reply With Quote
  #3  
Old 01-08-2001, 10:53 PM
Elscampie Elscampie is offline
Junior Member
 
Join Date: Jan 2001
Posts: 23
Default RE: RE: How can I Log a message in the EventViewer of Winnt?

Thanks,
Actualy, it uses the same procedure I used,
but it is explained...

Elscampie
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 05:35 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.