[DllImport("advapi32", SetLastError=true)]
static extern bool AccessCheck(
[MarshalAs(UnmanagedType.LPArray)]
byte [] pSecurityDescriptor,
IntPtr ClientToken,
uint DesiredAccess,
[In] ref GENERIC_MAPPING GenericMapping,
IntPtr PrivilegeSet,
ref uint PrivilegeSetLength,
out uint GrantedAccess,
out bool AccessStatus);
<DllImport("advapi32", SetLastError:=true)> _
Public Function AccessCheck(pSecurityDescriptor As IntPtr, _
ClientToken As IntPtr, _
DesiredAccess As Integer, _
ByRef GenericMapping As GENERIC_MAPPING, _
ByRef PrivilegeSet As IntPtr, _
ByRef PrivilegeSetLength As Integer, _
<Out()> ByRef GrantedAccess As Integer, _
<Out()> <MarshalAs(UnmanagedType.Bool)> ByRef AccessStatus As Boolean) As <MarshalAs(UnmanagedType.Bool)> Boolean
End Function
Declare Function AccessCheck Lib "advapi32.dll"( _
ByVal pSecurityDescriptor As IntPtr, _
ByVal ClientToken As IntPtr, _
ByVal DesiredAccess As Integer, _
ByRef GenericMapping As GENERIC_MAPPING, _
ByRef PrivilegeSet As IntPtr, _
ByRef PrivilegeSetLength As Integer, _
<Out()> ByRef GrantedAccess As Integer, _
<Out()> ByRef AccessStatus As Boolean) As Boolean
Do you know one? Please contribute it!
None.
use MSDN......
Please add some!