Re: ATL Service and kernal object
From: Brian Muth (bmuth_at_mvps.org)
Date: 03/19/04
- Next message: Steve Alpert: "ATL7 and IAccessible"
- Previous message: Igor Tandetnik: "Re: Change Font and Colors for a Static Control"
- In reply to: icywind: "ATL Service and kernal object"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 19 Mar 2004 08:23:32 -0800
The MFC client is probably running in the security context different from
the service. Therefore, you have to pay particular attention to the access
rights of the event's security descriptor
see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/synchronization_object_security_and_access_rights.asp
(watch for line breaks)
You might want to set the first parameter of CreateEvent explicitly, as in:
CDacl dacl;
dacl.AddAllowedAce (Sids::World (), GENERIC_READ | EVENT_MODIFY_STATE |
SYNCHRONIZE);
CSecurityDesc sd;
sd.SetDacl (dacl);
CSecurityAttributes sa;
sa.Set (sd);
...CreateEvent (sa, ...)
HTH
Brian
- Next message: Steve Alpert: "ATL7 and IAccessible"
- Previous message: Igor Tandetnik: "Re: Change Font and Colors for a Static Control"
- In reply to: icywind: "ATL Service and kernal object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|