How to write in the windows event log

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to write in the windows event log

Stefaan Denolf
Hi,
 
I would like to extent our Smalltalk application with the functionality that it can write messages into the event log of the windows machine it is running on.
Has some one any idea how you can do this from Smalltalk.
 
Our application is using vw 7.4.1.
Target OS, is Windows server 2003 and higher.
 
mvg
Stefaan
 
Stefaan Denolf
[hidden email]
.....................................................................

MediaGeniX NG
’t Hofveld 6E 3   |   1702 Groot-Bijgaarden   |   Belgium
T  +32 2 467 34 30   |   F  +32 2 467 34 39
http://www.mediagenix.tv
.....................................................................

This e-mail and any files attached with it are confidential and intended only for the use of the individual(s) or entity to whom they are addressed.
If you have received this e-mail by error, please, notify the sender immediately.

 
Reply | Threaded
Open this post in threaded view
|

Antwort: How to write in the windows event log

Gruenewald, Tom

Hello Stefaan.
Do you talk about the Microsoft Management Console?
Take a look a the online help. You will find references to the DOS commands eventcreate.exe and eventtriggers.exe.
See also: http://support.microsoft.com/kb/324145/en-us

Best regards,
Tom Grünewald

________

Carl Zeiss Industrielle Messtechnik GmbH
Softwareentwicklung/Software Development

T o m G r ü n e w a l d

73446 Oberkochen, Germany
tel: +49.7364.20-8541
fax: +49.7364.20-4800
email: [hidden email]
http://www.zeiss.de/imt

Carl Zeiss Industrielle Messtechnik GmbH. Carl-Zeiss-Straße 22, 73447 Oberkochen
Aufsichtsratsvorsitzender: Dr. Dieter Kurz,Geschäftsführer: Dr. Rainer Ohnheiser, Hanspeter Mürle
Sitz der Gesellschaft: 73446 Oberkochen, Deutschland, Handelsregister: Amtsgericht Ulm, HRB 501561


Inactive hide details for "Stefaan Denolf" <stefaan.denolf@mediagenix.tv>"Stefaan Denolf" <[hidden email]>



An


Kopie


Thema

How to write in the windows event log

Hi,

I would like to extent our Smalltalk application with the functionality that it can write messages into the event log of the windows machine it is running on.
Has some one any idea how you can do this from Smalltalk.

Our application is using vw 7.4.1.
Target OS, is Windows server 2003 and higher.

mvg
Stefaan

Stefaan Denolf
[hidden email]
.....................................................................

MediaGeniX NG
’t Hofveld 6E 3 | 1702 Groot-Bijgaarden | Belgium

T
+32 2 467 34 30 | F +32 2 467 34 39
http://www.mediagenix.tv
.....................................................................

This e-mail and any files attached with it are confidential and intended only for the use of the individual(s) or entity to whom they are addressed.
If you have received this e-mail by error, please, notify the sender immediately.



----------------------------------------
This message is intended for a particular addressee only and may contain business or company secrets. If you have received this email in error, please contact the sender and delete the message immediately. Any use of this email, including saving, publishing, copying, replication or forwarding of the message or the contents is not permitted.


pic31361.gif (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Antwort: How to write in the windows event log

Steven Kelly
Message
Tom's answer was great, but calling a DOS exe for every event might not be appropriate for some cases. I thought I'd look for the simple Windows DLL call to record an event... It actually looks rather tricky: the official MS process for Win32 is described here (Vista has a new way, but presumably supports this old way too):
It looks like this hard-codes the events you can log into a new DLL.
 
Luckily, the topic has been discussed on comp.lang.smalltalk, and a better solution posted:
There are a couple more messages: search groups.google.com for:
registereventsource reportevent smalltalk
 
HTH,
Steve
-----Original Message-----
From: Gruenewald, Tom [mailto:[hidden email]]
Sent: 26. lokakuuta 2007 10:56
To: [hidden email]
Cc: Stefaan Denolf
Subject: Antwort: How to write in the windows event log

Hello Stefaan.
Do you talk about the Microsoft Management Console?
Take a look a the online help. You will find references to the DOS commands eventcreate.exe and eventtriggers.exe.
See also: http://support.microsoft.com/kb/324145/en-us

Best regards,
Tom Grünewald

________

Carl Zeiss Industrielle Messtechnik GmbH
Softwareentwicklung/Software Development

T o m G r ü n e w a l d

73446 Oberkochen, Germany
tel: +49.7364.20-8541
fax: +49.7364.20-4800
email: [hidden email]
http://www.zeiss.de/imt

Carl Zeiss Industrielle Messtechnik GmbH. Carl-Zeiss-Straße 22, 73447 Oberkochen
Aufsichtsratsvorsitzender: Dr. Dieter Kurz,Geschäftsführer: Dr. Rainer Ohnheiser, Hanspeter Mürle
Sitz der Gesellschaft: 73446 Oberkochen, Deutschland, Handelsregister: Amtsgericht Ulm, HRB 501561


' src="cid:937251309@26102007-31E5" width=16 border=0>"Stefaan Denolf" <[hidden email]>



An


Kopie


Thema

How to write in the windows event log

Hi,

I would like to extent our Smalltalk application with the functionality that it can write messages into the event log of the windows machine it is running on.
Has some one any idea how you can do this from Smalltalk.

Our application is using vw 7.4.1.
Target OS, is Windows server 2003 and higher.

mvg
Stefaan

Stefaan Denolf
[hidden email]
.....................................................................

MediaGeniX NG
’t Hofveld 6E 3 | 1702 Groot-Bijgaarden | Belgium

T
+32 2 467 34 30 | F +32 2 467 34 39
http://www.mediagenix.tv
.....................................................................

This e-mail and any files attached with it are confidential and intended only for the use of the individual(s) or entity to whom they are addressed.
If you have received this e-mail by error, please, notify the sender immediately.



----------------------------------------
This message is intended for a particular addressee only and may contain business or company secrets. If you have received this email in error, please contact the sender and delete the message immediately. Any use of this email, including saving, publishing, copying, replication or forwarding of the message or the contents is not permitted.


graycol.gif (144 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Antwort: How to write in the windows event log

Stefaan Denolf
In reply to this post by Gruenewald, Tom
Message
Hi,
 
thanks for the input, i will give it a try
 
mvg
Stefaan


From: Steven Kelly [mailto:[hidden email]]
Sent: vrijdag 26 oktober 2007 11:48
To: [hidden email]
Cc: Stefaan Denolf
Subject: RE: Antwort: How to write in the windows event log

Tom's answer was great, but calling a DOS exe for every event might not be appropriate for some cases. I thought I'd look for the simple Windows DLL call to record an event... It actually looks rather tricky: the official MS process for Win32 is described here (Vista has a new way, but presumably supports this old way too):
It looks like this hard-codes the events you can log into a new DLL.
 
Luckily, the topic has been discussed on comp.lang.smalltalk, and a better solution posted:
There are a couple more messages: search groups.google.com for:
registereventsource reportevent smalltalk
 
HTH,
Steve
-----Original Message-----
From: Gruenewald, Tom [mailto:[hidden email]]
Sent: 26. lokakuuta 2007 10:56
To: [hidden email]
Cc: Stefaan Denolf
Subject: Antwort: How to write in the windows event log

Hello Stefaan.
Do you talk about the Microsoft Management Console?
Take a look a the online help. You will find references to the DOS commands eventcreate.exe and eventtriggers.exe.
See also: http://support.microsoft.com/kb/324145/en-us

Best regards,
Tom Grünewald

________

Carl Zeiss Industrielle Messtechnik GmbH
Softwareentwicklung/Software Development

T o m G r ü n e w a l d

73446 Oberkochen, Germany
tel: +49.7364.20-8541
fax: +49.7364.20-4800
email: [hidden email]
http://www.zeiss.de/imt

Carl Zeiss Industrielle Messtechnik GmbH. Carl-Zeiss-Straße 22, 73447 Oberkochen
Aufsichtsratsvorsitzender: Dr. Dieter Kurz,Geschäftsführer: Dr. Rainer Ohnheiser, Hanspeter Mürle
Sitz der Gesellschaft: 73446 Oberkochen, Deutschland, Handelsregister: Amtsgericht Ulm, HRB 501561


' src="cid:752423910@26102007-019A" width=16 border=0>"Stefaan Denolf" <[hidden email]>



An


Kopie


Thema

How to write in the windows event log

Hi,

I would like to extent our Smalltalk application with the functionality that it can write messages into the event log of the windows machine it is running on.
Has some one any idea how you can do this from Smalltalk.

Our application is using vw 7.4.1.
Target OS, is Windows server 2003 and higher.

mvg
Stefaan

Stefaan Denolf
[hidden email]
.....................................................................

MediaGeniX NG
’t Hofveld 6E 3 | 1702 Groot-Bijgaarden | Belgium

T
+32 2 467 34 30 | F +32 2 467 34 39
http://www.mediagenix.tv
.....................................................................

This e-mail and any files attached with it are confidential and intended only for the use of the individual(s) or entity to whom they are addressed.
If you have received this e-mail by error, please, notify the sender immediately.



----------------------------------------
This message is intended for a particular addressee only and may contain business or company secrets. If you have received this email in error, please contact the sender and delete the message immediately. Any use of this email, including saving, publishing, copying, replication or forwarding of the message or the contents is not permitted.


graycol.gif (144 bytes) Download Attachment