Desktop Functions: Smart Device Functions:
|
Search Results for "QueryServiceObjectSecurity" in [All]advapi32
/// Required to call the QueryServiceObjectSecurity or
/// Required to call the QueryServiceObjectSecurity function to query
''' Required to call the QueryServiceObjectSecurity or
''' Required to call the QueryServiceObjectSecurity function to query
static extern bool QueryServiceObjectSecurity(IntPtr serviceHandle, System.Security.AccessControl.SecurityInfos secInfo, ref SECURITY_DESCRIPTOR lpSecDesrBuf, uint bufSize, out uint bufSizeNeeded);
static extern bool QueryServiceObjectSecurity(SafeHandle serviceHandle, System.Security.AccessControl.SecurityInfos secInfo, byte[] lpSecDesrBuf, uint bufSize, out uint bufSizeNeeded);
Declare Function QueryServiceObjectSecurity Lib "advapi32.dll" (TODO) As TODO
bool ok = QueryServiceObjectSecurity(sc.ServiceHandle, SecurityInfos.DiscretionaryAcl, psd, 0, out bufSizeNeeded);
ok = QueryServiceObjectSecurity(sc.ServiceHandle, SecurityInfos.DiscretionaryAcl, psd, bufSizeNeeded, out bufSizeNeeded);
throw new ApplicationException("error calling QueryServiceObjectSecurity() to get DACL for SeaweedService: error code=" + err);
throw new ApplicationException("error calling QueryServiceObjectSecurity(2) to get DACL for SeaweedService: error code=" + Marshal.GetLastWin32Error()); See also QueryServiceObjectSecurity. |