Registriert seit: 29. Mär 2009
439 Beiträge
|
Re: Problem mit Service und TEvent
2. Jul 2009, 13:43
Eventuell hilft:
Delphi-Quellcode:
var
FSecurityAttributes : TSecurityAttributes;
FSecurityDescriptor : TSecurityDescriptor;
begin
InitializeSecurityDescriptor(@FSecurityDescriptor, SECURITY_DESCRIPTOR_REVISION);
SetSecurityDescriptorDacl(@FSecurityDescriptor, true, nil, false);
FSecurityAttributes.nLength := SizeOf(FSecurityAttributes);
FSecurityAttributes.lpSecurityDescriptor := @FSecurityDescriptor;
FSecurityAttributes.bInheritHandle := false;
FEvent := TEvent.Create (@FSecurityAttributes, False, False, 'MyEventName');
...
|
|
Zitat
|