
howto register only whilst running
I don't want my server to be launchable - I want it to be only
usable while it is running. So I need to call the register code
when it starts up, eg
_Module.UpdateRegistryFromResource(IDR_JedmicsObj, TRUE);
nRet = _Module.RegisterServer(TRUE);
and unregister it when it shuts down, eg
_Module.UpdateRegistryFromResource(IDR_JedmicsObj, FALSE);
nRet = _Module.UnregisterServer(TRUE);
but I also need to modify it so that it doesn't list the
LocalServer32 line, I think, to prevent launchability at all.
(I suppose I could modify launch permissions to a NULL DACL, but
that isn't correct in my eyes - it isn't that noone is allowed to launch it,
but rather
that the SCM cannot launch it to be a server - it takes a custom launch that
the
SCM cannot do.)
Can I just remove the LocalServer32 line from the rgs file for the creatable
object ?
(Or will my ignorance up and bite me :))