Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

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

.
Documentation
[TOKEN_PRIVILEGES] on MSDN

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, _

.

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.


 
Access PInvoke.net directly from VS: