Prev: OpenEvent() fails on Vista for some processes while trying to open global event
Next: Finding lost file handle
From: Jochen Kalmbach [MVP] on 16 Dec 2009 01:37 Hi Grzegorz! > On pre vista OSes it used to be working, on Vista it works too but not > for every process. For some processes OpenEvent(EVENT_MODIFY_STATE,...) > fails with GetLastError() returning 5 (ERROR_ACCESS_DENIED). Maybe it is the same problem, as with NamesdPipes... See: http://msdn.microsoft.com/en-us/library/bb625963.aspx And here is a german posting about this problem: http://blog.m-ri.de/index.php/2009/12/08/windows-integrity-control-schreibzugriff-auf-eine-named-pipe-eines-services-ueber-anonymen-zugriff-auf-vista-windows-2008-server-und-windows-7/ => you must use the following SDDL-String: #define UNTRUSTED_INTEGRITY_SDDL_SACL _T("S:(ML;;NW;;;S-1-16-0)") -- Greetings Jochen My blog about Win32 and .NET http://blog.kalmbachnet.de/ |