"Remy Lebeau (TeamB)" <
XXXX@XXXXX.COM >wrote in message
Quote
"Zoetjuh" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...
>Is still seems that this COM-function is run before the
>ServiceStart was finished.
In my own COM services, ServiceStart() is always completed before COM
methods can be called. So I have to think that something else in your
configuration is not set up properly yet.
I wish I knew what :(
You're seen all my code and below, all the reg-keys.
Might it be some weird Windows XP Pro SP2-something?
Quote
>About the registry-part, whenever this is not implemented as in
>the document you referred to, the NT-service wont start at all,
>so the registry part should be OK now.
Since you never explained exactly what settings you actually configured,
there is no way to know whether you set them up properly in the first place.
Gambit
--------------
True, there we go:
[ HKEY_CLASSES_ROOT\AppID\{8FC528A4-5C96-41D2-A6AD-EBB9340D656D} ]
"LocalService" (of type String) = "PMSMain" (which is the 'this->Name' of my
TService)
[ HKEY_CLASSES_ROOT\AppID\P_MailServer.exe ] (which is the services executable
name)
"AppID" (of type String) = "{8FC528A4-5C96-41D2-A6AD-EBB9340D656D}"
[ HKEY_CLASSES_ROOT\CLSID\{8FC528A4-5C96-41D2-A6AD-EBB9340D656D} ]
"AppID" (of type String) = "{8FC528A4-5C96-41D2-A6AD-EBB9340D656D}"
--------------
The CLSID-key has a couple of subkeys which have been placed there be a BCBs
"P_Mailserver.exe /install"-handler:
[ HKEY_CLASSES_ROOT\CLSID\{8FC528A4-5C96-41D2-A6AD-EBB9340D656D}\LocalServer32 ]
"(default)" (of type String) = "C:\INONTW~1\P-MAIL~1\P_MAIL~1.EXE /Automation"
"ThreadingModal" (of type String) = Free
[ HKEY_CLASSES_ROOT\CLSID\{8FC528A4-5C96-41D2-A6AD-EBB9340D656D}\ProgID ]
"(default)" (of type String) = "P_MailServer.MailServerCOM"
[ HKEY_CLASSES_ROOT\CLSID\{8FC528A4-5C96-41D2-A6AD-EBB9340D656D}\TypeLib ]
"(default)" (of type String) = "{6255D13A-04EA-48F0-A162-015CC53AE559}"
[ HKEY_CLASSES_ROOT\CLSID\{8FC528A4-5C96-41D2-A6AD-EBB9340D656D}\Version ]
"(default)" (of type String) = "1.0"
--------------
Another key that has been placed in the registry by the "/install" is:
[ HKEY_CLASSES_ROOT\P_MailServer.MailServerCOM\CLSID ]
"(default)" (of type String) = "{8FC528A4-5C96-41D2-A6AD-EBB9340D656D}"