ReactOS 0.4.16-dev-290-g89a3b8f
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Functions | |
NTSTATUS NTAPI | SeQueryInformationToken (_In_ PACCESS_TOKEN AccessToken, _In_ TOKEN_INFORMATION_CLASS TokenInformationClass, _Outptr_result_buffer_(_Inexpressible_(token-dependent)) PVOID *TokenInformation) |
Queries information details about the given token to the call. The difference between NtQueryInformationToken and this routine is that the system call has user mode buffer data probing and additional protection checks whereas this routine doesn't have any of these. The routine is used exclusively in kernel mode. | |
_Must_inspect_result_ __kernel_entry NTSTATUS NTAPI | NtQueryInformationToken (_In_ HANDLE TokenHandle, _In_ TOKEN_INFORMATION_CLASS TokenInformationClass, _Out_writes_bytes_to_opt_(TokenInformationLength, *ReturnLength) PVOID TokenInformation, _In_ ULONG TokenInformationLength, _Out_ PULONG ReturnLength) |
Queries a specific type of information in regard of an access token based upon the information class. The calling thread must have specific access rights in order to obtain specific information about the token. | |
_Must_inspect_result_ __kernel_entry NTSTATUS NTAPI | NtSetInformationToken (_In_ HANDLE TokenHandle, _In_ TOKEN_INFORMATION_CLASS TokenInformationClass, _In_reads_bytes_(TokenInformationLength) PVOID TokenInformation, _In_ ULONG TokenInformationLength) |
Sets (modifies) some specific information in regard of an access token. The calling thread must have specific access rights in order to modify token's information data. | |
Variables | |
static const INFORMATION_CLASS_INFO | SeTokenInformationClass [] |
#define NDEBUG |
Definition at line 12 of file tokencls.c.
_Must_inspect_result_ __kernel_entry NTSTATUS NTAPI NtQueryInformationToken | ( | _In_ HANDLE | TokenHandle, |
_In_ TOKEN_INFORMATION_CLASS | TokenInformationClass, | ||
_Out_writes_bytes_to_opt_(TokenInformationLength, *ReturnLength) PVOID | TokenInformation, | ||
_In_ ULONG | TokenInformationLength, | ||
_Out_ PULONG | ReturnLength | ||
) |
Queries a specific type of information in regard of an access token based upon the information class. The calling thread must have specific access rights in order to obtain specific information about the token.
[in] | TokenHandle | A handle of a token where information is to be gathered. |
[in] | TokenInformationClass | Token information class. |
[out] | TokenInformation | A returned output buffer with token information, which information is arbitrarily upon the information class chosen. |
[in] | TokenInformationLength | Length of the token information buffer, in bytes. |
[out] | ReturnLength | A pointer to a variable provided by the caller that receives the actual length of the buffer pointed by TokenInformation, in bytes. If TokenInformation is NULL and TokenInformationLength is 0, this parameter receives the required length needed to store the buffer information in memory. This parameter must not be NULL! |
Definition at line 473 of file tokencls.c.
Referenced by CreateDefaultProcessSecurityCommon(), CreateProcessAsUserCommon(), CsrGetProcessLuid(), CsrSetProcessSecurity(), DoAdminUnlock(), DuplicateTokenAsEffective(), GetCallerLuid(), GetSiteSidFromToken(), GetTokenInformation(), GetUserSid(), GetUserSidStringFromToken(), ImpersonateLoggedOnUser(), IsTokenRestricted(), LsapIsTrustedClient(), QueryOriginalDefaultDacl(), QueryTokenDefaultDaclTests(), QueryTokenGroupsTests(), QueryTokenImpersonationTests(), QueryTokenIsSandboxInert(), QueryTokenOriginTests(), QueryTokenOwnerTests(), QueryTokenPrimaryGroupTests(), QueryTokenPrivilegesAndGroupsTests(), QueryTokenPrivilegesTests(), QueryTokenRestrictedSidsTest(), QueryTokenSessionIdTests(), QueryTokenSourceTests(), QueryTokenStatisticsTests(), QueryTokenTypeTests(), QueryTokenUserTests(), RegOpenUserClassesRoot(), RtlDefaultNpAcl(), RtlNewInstanceSecurityObject(), RtlNewSecurityGrantedAccess(), and START_TEST().
_Must_inspect_result_ __kernel_entry NTSTATUS NTAPI NtSetInformationToken | ( | _In_ HANDLE | TokenHandle, |
_In_ TOKEN_INFORMATION_CLASS | TokenInformationClass, | ||
_In_reads_bytes_(TokenInformationLength) PVOID | TokenInformation, | ||
_In_ ULONG | TokenInformationLength | ||
) |
Sets (modifies) some specific information in regard of an access token. The calling thread must have specific access rights in order to modify token's information data.
@unimplemented
[in] | TokenHandle | A handle of a token where information is to be modified. |
[in] | TokenInformationClass | Token information class. |
[in] | TokenInformation | An arbitrary pointer to a buffer with token information to set. Such arbitrary buffer depends on the information class chosen that the caller wants to modify such information data of a token. |
[in] | TokenInformationLength | Length of the token information buffer, in bytes. |
Definition at line 1125 of file tokencls.c.
Referenced by SetTokenDefaultDaclTests(), SetTokenInformation(), SetTokenSessionIdTests(), and START_TEST().
NTSTATUS NTAPI SeQueryInformationToken | ( | _In_ PACCESS_TOKEN | AccessToken, |
_In_ TOKEN_INFORMATION_CLASS | TokenInformationClass, | ||
_Outptr_result_buffer_(_Inexpressible_(token-dependent)) PVOID * | TokenInformation | ||
) |
Queries information details about the given token to the call. The difference between NtQueryInformationToken and this routine is that the system call has user mode buffer data probing and additional protection checks whereas this routine doesn't have any of these. The routine is used exclusively in kernel mode.
[in] | AccessToken | An access token to be given. |
[in] | TokenInformationClass | Token information class. |
[out] | TokenInformation | Buffer with retrieved information. Such information is arbitrary, depending on the requested information class. |
Definition at line 95 of file tokencls.c.
Referenced by find_gid(), NtSecureConnectPort(), START_TEST(), and TestsSeQueryInformationToken().
|
static |
Definition at line 19 of file tokencls.c.
Referenced by NtQueryInformationToken(), and NtSetInformationToken().