COM-server in NT services


I have seen some posts in this newsgroup earlier,
about difficulties putting a COM/OLE-server in an
NT service, without any clear solutions given.

COM is initialized and the class factories are
registered during unit initialization (through an
InitProc) and apparently that initialization is
not valid any more when the service begins its
actual execution. So what do you do?

Roll your own comserv/comobj-units that can be
kicked-off in "ServiceMain" instead of during
unit initialization?

Any other clever work-arounds?

/Hakan Linderhed