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.

61 lines
1.4 KiB

  1. /*****************************************************************************/
  2. /* Copyright (c) 1999-2001 Microsoft Corporation, All Rights Reserved /
  3. /*****************************************************************************/
  4. //=================================================================
  5. //
  6. // ObjAccessRights.CPP -- Class for obtaining effective access
  7. // rights on a Obj.
  8. //
  9. // Copyright (c) 1999-2001 Microsoft Corporation, All Rights Reserved
  10. //
  11. // Revisions: 6/11/99 a-kevhu Created
  12. //
  13. //=================================================================
  14. #ifndef _COBJACCESSRIGHTS_H_
  15. #define _COBJACCESSRIGHTS_H_
  16. #ifdef NTONLY
  17. class CObjAccessRights : public CAccessRights
  18. {
  19. public:
  20. // Constructors and destructor...
  21. CObjAccessRights(bool fUseCurThrTok = false);
  22. CObjAccessRights(LPCWSTR wstrObjName, SE_OBJECT_TYPE ObjectType, bool fUseCurThrTok = false);
  23. CObjAccessRights(const USER user, USER_SPECIFIER usp);
  24. CObjAccessRights(const USER user, LPCWSTR wstrObjName, SE_OBJECT_TYPE ObjectType, USER_SPECIFIER usp);
  25. ~CObjAccessRights();
  26. // Useage functions...
  27. DWORD SetObj(LPCWSTR wstrObjName, SE_OBJECT_TYPE ObjectType);
  28. protected:
  29. private:
  30. CHString m_chstrObjName;
  31. };
  32. #endif
  33. #endif