Source name in the Application Event log

Discussion in 'Windows 64bit' started by pete, Mar 31, 2010.

  1. pete

    pete Guest

    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\services\APALSvc-POSTERA]
    ImagePath="x:\devl\APALSvc\Release_POSTERA\APALSvc-POSTERA.exe"

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\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?
    pete, Mar 31, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dick K

    COM+ Event System Errors in Application Log

    Dick K, Apr 23, 2005, in forum: Computer Support
    Replies:
    7
    Views:
    11,751
    ericghanson
    Jan 30, 2009
  2. MikeT

    Application Error - Event ID 1000

    MikeT, Aug 10, 2005, in forum: Computer Support
    Replies:
    3
    Views:
    23,137
    MikeT
    Aug 13, 2005
  3. Ted Jones
    Replies:
    1
    Views:
    3,167
    old jon
    Aug 29, 2005
  4. Jack
    Replies:
    1
    Views:
    511
    voipguy
    Feb 22, 2005
  5. =?Utf-8?B?Q2FybG9z?=

    Event ID 7026 error in event viewer

    =?Utf-8?B?Q2FybG9z?=, Apr 25, 2007, in forum: Windows 64bit
    Replies:
    6
    Views:
    13,415
    =?Utf-8?B?Q2FybG9z?=
    Apr 27, 2007
Loading...

Share This Page