Changeset 21391 for trunk/include


Ignore:
Timestamp:
Jul 14, 2010, 2:14:08 PM (15 years ago)
Author:
dmik
Message:

Added token access flags and PTOKEN_USER (note that all token code is still a stub).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/winnt.h

    r21360 r21391  
    21172117#define SECURITY_LOGON_IDS_RID_COUNT            (3L)
    21182118
     2119
     2120/*
     2121 * Token access rights
     2122 */
     2123
     2124#define TOKEN_ASSIGN_PRIMARY            (0x0001)
     2125#define TOKEN_DUPLICATE                 (0x0002)
     2126#define TOKEN_IMPERSONATE               (0x0004)
     2127#define TOKEN_QUERY                     (0x0008)
     2128#define TOKEN_QUERY_SOURCE              (0x0010)
     2129#define TOKEN_ADJUST_PRIVILEGES         (0x0020)
     2130#define TOKEN_ADJUST_GROUPS             (0x0040)
     2131#define TOKEN_ADJUST_DEFAULT            (0x0080)
     2132#define TOKEN_ADJUST_SESSIONID          (0x0100)
     2133
     2134#define TOKEN_ALL_ACCESS_P                      (STANDARD_RIGHTS_REQUIRED   | \
     2135                                                                         TOKEN_ASSIGN_PRIMARY       | \
     2136                                     TOKEN_DUPLICATE            | \
     2137                                                                         TOKEN_IMPERSONATE              | \
     2138                                                                         TOKEN_QUERY                    | \
     2139                                                                         TOKEN_QUERY_SOURCE             | \
     2140                                                                         TOKEN_ADJUST_PRIVILEGES        | \
     2141                                     TOKEN_ADJUST_GROUPS        | \
     2142                                     TOKEN_ADJUST_DEFAULT)
     2143
     2144#define TOKEN_ALL_ACCESS                        (TOKEN_ALL_ACCESS_P             | \
     2145                                                                         TOKEN_ADJUST_SESSIONID)
     2146
     2147#define TOKEN_READ                              (STANDARD_RIGHTS_READ       | \
     2148                                                                         TOKEN_QUERY)
     2149
     2150#define TOKEN_WRITE                             (STANDARD_RIGHTS_WRITE      | \
     2151                                                                         TOKEN_ADJUST_PRIVILEGES    | \
     2152                                                                         TOKEN_ADJUST_GROUPS        | \
     2153                                                                         TOKEN_ADJUST_DEFAULT)
     2154
     2155#define TOKEN_EXECUTE                           (STANDARD_RIGHTS_EXECUTE)
     2156
    21192157/*
    21202158 * TOKEN_USER
     
    21232161typedef struct _TOKEN_USER {
    21242162  SID_AND_ATTRIBUTES User;
    2125 } TOKEN_USER;
     2163} TOKEN_USER, *PTOKEN_USER;
    21262164
    21272165/*
Note: See TracChangeset for help on using the changeset viewer.