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.

62 lines
1.3 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. wstoken.h
  5. Abstract:
  6. This module contains the macros, user defined structures & function
  7. definitions needed by whoami.cpp, wsuser.cpp, wssid.cpp and
  8. wspriv.cppfiles.
  9. Authors:
  10. Christophe Robert
  11. Revision History:
  12. 02-July-2001 : Updated by Wipro Technologies.
  13. --*/
  14. #ifndef WSTOKEN_H
  15. #define WSTOKEN_H
  16. #include "wssid.h"
  17. class WsUser;
  18. class WsPrivilege ;
  19. // ----- Class WsAccessToken -----
  20. class WsAccessToken {
  21. protected:
  22. HANDLE hToken ;
  23. BOOL IsLogonId ( OUT TOKEN_GROUPS *lpTokenGroups ) ;
  24. public:
  25. WsAccessToken ( VOID ) ;
  26. ~WsAccessToken ( VOID ) ;
  27. DWORD *dwDomainAttributes;
  28. DWORD InitUserSid ( OUT WsSid *lpSid ) ;
  29. DWORD InitGroups ( OUT WsSid ***lppGroupsSid,
  30. OUT WsSid **lppLogonId,
  31. OUT DWORD *lpnbGroups ) ;
  32. DWORD InitPrivs ( OUT WsPrivilege ***lppPriv,
  33. OUT DWORD *lpnbPriv ) ;
  34. DWORD Open ( VOID ) ;
  35. VOID GetDomainAttributes( DWORD dwAttributes,
  36. LPWSTR szDmAttrib,
  37. DWORD dwSize );
  38. } ;
  39. #endif