Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows 64 Bit > Source name in the Application Event log

Reply
Thread Tools Display Modes

Source name in the Application Event log

 
 
pete
Guest
Posts: n/a

 
      03-31-2010
I'm really confused about how the Windows 7 (64bit Ultimate) determines the
Source name of messages in the application event log which originate from a
service I wrote.

My service can be instantiated with a switch or without a switch. This means
that if I register my service twice, once without and once with the switch
/I TEST, I end up with these entires in the registry (there are more of
course but these are the ones relevant to my problem):

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\servic es\APALSvc-POSTERA]
ImagePath="x:\devl\APALSvc\Release_POSTERA\APALSvc-POSTERA.exe"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\servic es\APALSvc-POSTERA-TEST]
ImagePath="x:\devl\APALSvc\Release_POSTERA\APALSvc-POSTERA.exe /I TEST"

(of course, Image path is a hex entry in the registry).

Now both services run fine and write messages to the application event log.
While messages from the switchless service show APALSvc-POSTERA as the
source name, messages from the second service above show TEST as the Source
name instead of APALSvc-POSTERA-TEST.

Why is that and can that be changed?



 
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Active Directory problems/dcdiag error kj [SBS MVP] Windows Small Business Server 3 03-24-2010 09:19 PM
Re: Server2003 2008 error !! Paul Bergson [MVP-DS] Active Directory 0 11-27-2009 12:19 PM
Re: Server2003 2008 error !! Meinolf Weber [MVP-DS] Active Directory 0 11-26-2009 01:37 PM
KDC Event ID 7 and Wins startup errors. GihanZ Windows Small Business Server 4 11-23-2009 01:43 AM
Security Failures after Password Change Zachary Server Security 14 10-30-2009 06:02 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59