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.

50 lines
2.3 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 2000.
  5. //
  6. // File: rsopsec.h
  7. //
  8. // Contents: used in RSOP mode security pane
  9. //
  10. // Classes: CRSOPSecurityInfo
  11. //
  12. // Functions:
  13. //
  14. // History: 02-15-2000 stevebl Created
  15. //
  16. //---------------------------------------------------------------------------
  17. class CRSOPSecurityInfo : public ISecurityInformation
  18. {
  19. private:
  20. ULONG m_cRef;
  21. CAppData * m_pData;
  22. public:
  23. CRSOPSecurityInfo(CAppData * pData) {m_pData = pData; m_cRef = 1;}
  24. // *** IUnknown methods ***
  25. virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid,
  26. LPVOID *ppvObj);
  27. virtual ULONG STDMETHODCALLTYPE AddRef();
  28. virtual ULONG STDMETHODCALLTYPE Release();
  29. virtual HRESULT STDMETHODCALLTYPE MapGeneric(const GUID *pguidObjectType,
  30. UCHAR *pAceFlags,
  31. ACCESS_MASK *pMask);
  32. // *** ISecurityInformation methods ***
  33. virtual HRESULT STDMETHODCALLTYPE GetObjectInformation(PSI_OBJECT_INFO pObjectInfo);
  34. virtual HRESULT STDMETHODCALLTYPE GetSecurity(SECURITY_INFORMATION RequestedInformation,
  35. PSECURITY_DESCRIPTOR *ppSecurityDescriptor, BOOL fDefault);
  36. virtual HRESULT STDMETHODCALLTYPE SetSecurity(SECURITY_INFORMATION SecurityInformation,
  37. PSECURITY_DESCRIPTOR pSecurityDescriptor);
  38. virtual HRESULT STDMETHODCALLTYPE GetAccessRights(const GUID *pguidObjectType,
  39. DWORD dwFlags, PSI_ACCESS *ppAccess,
  40. ULONG *pcAccesses,
  41. ULONG *piDefaultAccess);
  42. virtual HRESULT STDMETHODCALLTYPE GetInheritTypes(PSI_INHERIT_TYPE *ppInheritTypes,
  43. ULONG *pcInheritTypes);
  44. virtual HRESULT STDMETHODCALLTYPE PropertySheetPageCallback(HWND hwnd,
  45. UINT uMsg,
  46. SI_PAGE_TYPE uPage);
  47. };