Using IProcessInitializer
Hi,
We are currently trying to use IProcessInitializer in our COM+ components in order to perform some preparation/cleanup of resources when dllhost is loaded/unloaded. We can't find too much actual information about people using it so it's a bit hard to try and figure out how it works.
We are running on Windows XP SP2 using Delphi 7 (not .NET, it's for a standard win32 COM+ dll component). I know it's not VS but... my problem is not related to the development platform as far as I know.
When reading the type library of comsvcs.dll, in XP SP2, there is no such interface as IProcessInitializer. However it is present in the same file in Windows 2003... Technically, according to the MSDN articles, it should be here starting from Windows 2000.
I've read somewhere that you should be able to just add the definition of IProcessInitializer to your own type library and implement it. See:http://groups.google.ca/group/microsoft.public.platformsdk.complus_mts/browse_thread/thread/6f27e5f55b002311/4a62f7407d5edeb7?lnk=st&q=com%2B+iprocessinitializer+not+called&rnum=2&hl=en#4a62f7407d5edeb7
We tried that but the startup() and shutdown() methods are never called. We have also turned on the InitializesServerApplication parameter on a test component so that it would call IProcessInitializer's methods upon loading/unloading but we still can't get anything to work.
Has anyone succesfully used IProcessInitializer on Windows XP SP2? If so, how?
Thanks a lot, we've been stuck on this for a while now and I don't really know where to look anymore...

