Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than advapi32, prefix the name with the module name and a period.
<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
VB Signature:
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
The AccessCheck function determines whether a security descriptor grants a specified set of access rights to the client identified by an access token. Typically, server applications use this function to check access to a private object.
5/19/2019 4:01:45 AM - -91.119.3.204
The GENERIC_MAPPING structure defines the mapping of generic access rights to specific and standard access rights for an object. When a client application requests generic access to an object, that request is mapped to the access rights defined in this structure.
2/6/2012 6:11:58 AM - -84.9.34.166
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).