Discussion:
Continued problem with COM Server as Service on Windows 2003 Server
(too old to reply)
Stefan Berndt
2004-06-22 14:10:38 UTC
Permalink
However, I tried to use the solution offered in this group my COM
Server doesn't work on Windows 2003 Server if installed as a service.

I try to manipulate the (D)COM permissions necessary for the server
before the Service is created.

CoInitializeEx(nil,CoInitFlags);
CoInitializeSecurity(nil,-1,nil,nil,
RPC_C_AUTHN_LEVEL_NONE,
RPC_C_IMP_LEVEL_IDENTIFY,nil,0,nil);

if ServiceInstalling then
begin
SvcMgr.Application.Initialize;
end;

SvcMgr.Application.CreateForm(TMyService, MyService);
SvcMgr.Application.Run;

Although I added an TApplicationEvent-Handler handling the onIdle
Event as mentionend my client application always get's a timeout.

Can anybody help me?

Thanks,
Stefan Berndt
p***@gmail.com
2016-06-01 12:10:26 UTC
Permalink
Post by Stefan Berndt
However, I tried to use the solution offered in this group my COM
Server doesn't work on Windows 2003 Server if installed as a service.
I try to manipulate the (D)COM permissions necessary for the server
before the Service is created.
CoInitializeEx(nil,CoInitFlags);
CoInitializeSecurity(nil,-1,nil,nil,
RPC_C_AUTHN_LEVEL_NONE,
RPC_C_IMP_LEVEL_IDENTIFY,nil,0,nil);
if ServiceInstalling then
begin
SvcMgr.Application.Initialize;
end;
SvcMgr.Application.CreateForm(TMyService, MyService);
SvcMgr.Application.Run;
Although I added an TApplicationEvent-Handler handling the onIdle
Event as mentionend my client application always get's a timeout.
Can anybody help me?
Thanks,
Stefan Berndt
Nope sorry can't help.

Loading...