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.

17 lines
458 B

  1. typedef struct {
  2. DWORD ProcessId;
  3. DWORD ThreadId;
  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. } MYTOKEN;
  11. typedef MYTOKEN *PMYTOKEN;
  12. HANDLE OpenMyToken(HWND);
  13. BOOL CloseMyToken(HWND, HANDLE, BOOL);