Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
510 B

  1. typedef struct {
  2. HANDLE Token;
  3. LPWSTR Name;
  4. PTOKEN_USER UserId;
  5. PTOKEN_GROUPS Groups;
  6. PTOKEN_OWNER DefaultOwner;
  7. PTOKEN_PRIMARY_GROUP PrimaryGroup;
  8. PTOKEN_PRIVILEGES Privileges;
  9. PTOKEN_STATISTICS TokenStats;
  10. PTOKEN_GROUPS RestrictedSids ;
  11. } MYTOKEN;
  12. typedef MYTOKEN *PMYTOKEN;
  13. HANDLE OpenMyToken(HANDLE, LPWSTR);
  14. BOOL CloseMyToken(HWND, HANDLE, BOOL);