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):


    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. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.