Desktop Functions: Smart Device Functions:
|
Search Results for "TOKEN_PRIVILEGES" in [All]Enums
/// The buffer receives a TOKEN_PRIVILEGES structure that contains the privileges of the token. Structures
public struct TOKEN_PRIVILEGES {
public struct TOKEN_PRIVILEGES
Structure TOKEN_PRIVILEGES
Dim tp As New TOKEN_PRIVILEGES advapi32
ref TOKEN_PRIVILEGES NewState,
ref TOKEN_PRIVILEGES PreviousState,
ref TOKEN_PRIVILEGES NewState,
ByRef NewState As TOKEN_PRIVILEGES, _
ByRef PreviousState As TOKEN_PRIVILEGES, _
ByRef NewState As TOKEN_PRIVILEGES, _
ByRef NewState As TOKEN_PRIVILEGES, _
ByRef PreviousState As TOKEN_PRIVILEGES, _
var TOKEN_PRIVILEGES = new NativeMethods.TOKEN_PRIVILEGES();
TOKEN_PRIVILEGES.PrivilegeCount = 1;
TOKEN_PRIVILEGES.Attributes = NativeMethods.SE_PRIVILEGE_ENABLED;
TOKEN_PRIVILEGES.Luid = locallyUniqueIdentifier;
ref TOKEN_PRIVILEGES,
[MarshalAs(UnmanagedType.Struct)]ref TOKEN_PRIVILEGES newstate,
internal struct TOKEN_PRIVILEGES
Private Structure TOKEN_PRIVILEGES
ByRef NewState As TOKEN_PRIVILEGES, _
ByRef PreviousState As TOKEN_PRIVILEGES, _
'Set up a TOKEN_PRIVILEGES structure containing only the shutdown privilege.
Dim newState As New TOKEN_PRIVILEGES
'Set up a TOKEN_PRIVILEGES structure for the returned (modified) privileges.
Dim prevState As TOKEN_PRIVILEGES = New TOKEN_PRIVILEGES
'Apply the TOKEN_PRIVILEGES structure to the current process's token. |