Поделиться через


CAccessToken Members

Methods

Attach

Call this method to take ownership of the given access token handle.

~CAccessToken

The destructor.

CheckTokenMembership

Call this method to determine if a specified SID is enabled in the CAccessToken object.

CreateImpersonationToken

Call this method to create a new impersonation access token.

CreatePrimaryToken

Call this method to create a new primary token.

CreateProcessAsUser

Call this method to create a new process running in the security context of the user represented by the CAccessToken object.

CreateRestrictedToken

Call this method to create a new, restricted CAccessToken object.

Detach

Call this method to revoke ownership of the access token.

DisablePrivilege

Call this method to disable a privilege in the CAccessToken object.

DisablePrivileges

Call this method to disable one or more privileges in the CAccessToken object.

EnablePrivilege

Call this method to enable a privilege in the CAccessToken object.

EnablePrivileges

Call this method to enable one or more privileges in the CAccessToken object.

GetDefaultDacl

Call this method to return the CAccessToken object's default DACL.

GetEffectiveToken

Call this method to get the CAccessToken object equal to the access token in effect for the current thread.

GetGroups

Call this method to return the CAccessToken object's token groups.

GetHandle

Call this method to retrieve a handle to the access token.

GetImpersonationLevel

Call this method to get the impersonation level from the access token.

GetLogonSessionId

Call this method to get the Logon Session ID associated with the CAccessToken object.

GetLogonSid

Call this method to get the Logon SID associated with the CAccessToken object.

GetOwner

Call this method to get the owner associated with the CAccessToken object.

GetPrimaryGroup

Call this method to get the primary group associated with the CAccessToken object.

GetPrivileges

Call this method to get the privileges associated with the CAccessToken object.

GetProcessToken

Call this method to initialize the CAccessToken with the access token from the given process.

GetProfile

Call this method to get the handle pointing to the user profile associated with the CAccessToken object.

GetSource

Call this method to get the source of the CAccessToken object.

GetStatistics

Call this method to get information associated with the CAccessToken object.

GetTerminalServicesSessionId

Call this method to get the Terminal Services Session ID associated with the CAccessToken object.

GetThreadToken

Call this method to initialize the CAccessToken with the token from the given thread.

GetTokenId

Call this method to get the Token ID associated with the CAccessToken object.

GetType

Call this method to get the token type of the CAccessToken object.

GetUser

Call this method to identify the user associated with the CAccessToken object.

HKeyCurrentUser

Call this method to get the handle pointing to the user profile associated with the CAccessToken object.

Impersonate

Call this method to assign an impersonation CAccessToken to a thread.

ImpersonateLoggedOnUser

Call this method to allow the calling thread to impersonate the security context of a logged-on user.

IsTokenRestricted

Call this method to test if the CAccessToken object contains a list of restricted SIDs.

LoadUserProfile

Call this method to load the user profile associated with the CAccessToken object.

LogonUser

Call this method to create a logon session for the user associated with the given credentials.

OpenCOMClientToken

Call this method from within a COM server handling a call from a client to initialize the CAccessToken with the access token from the COM client.

OpenNamedPipeClientToken

Call this method from within a server taking requests over a named pipe to initialize the CAccessToken with the access token from the client.

OpenRPCClientToken

Call this method from within a server handling a call from an RPC client to initialize the CAccessToken with the access token from the client.

OpenThreadToken

Call this method to set the impersonation level and then initialize the CAccessToken with the token from the given thread.

PrivilegeCheck

Call this method to determine whether a specified set of privileges are enabled in the CAccessToken object.

Revert

Call this method to stop a thread that is using an impersonation token.

SetDefaultDacl

Call this method to set the default DACL of the CAccessToken object.

SetOwner

Call this method to set the owner of the CAccessToken object.

SetPrimaryGroup

Call this method to set the primary group of the CAccessToken object.

См. также

Основные понятия

CAccessToken Class