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.7 KiB

  1. // FaxSecurity.h : Declaration of the CFaxSecurity
  2. #ifndef __FAXSECURITY_H_
  3. #define __FAXSECURITY_H_
  4. #include "resource.h" // main symbols
  5. #include "FaxLocalPtr.h"
  6. //
  7. //======================== FAX SECURITY ==============================================
  8. //
  9. class ATL_NO_VTABLE CFaxSecurity :
  10. public CComObjectRootEx<CComSingleThreadModel>,
  11. public ISupportErrorInfo,
  12. public IDispatchImpl<IFaxSecurity, &IID_IFaxSecurity, &LIBID_FAXCOMEXLib>,
  13. public CFaxInitInner
  14. {
  15. public:
  16. CFaxSecurity() : CFaxInitInner(_T("FAX SECURITY")),
  17. m_bInited(false),
  18. m_dwSecurityInformation(OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION)
  19. {
  20. }
  21. ~CFaxSecurity()
  22. {
  23. }
  24. DECLARE_REGISTRY_RESOURCEID(IDR_FAXSECURITY)
  25. DECLARE_NOT_AGGREGATABLE(CFaxSecurity)
  26. DECLARE_PROTECT_FINAL_CONSTRUCT()
  27. BEGIN_COM_MAP(CFaxSecurity)
  28. COM_INTERFACE_ENTRY(IFaxSecurity)
  29. COM_INTERFACE_ENTRY(IDispatch)
  30. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  31. COM_INTERFACE_ENTRY(IFaxInitInner)
  32. END_COM_MAP()
  33. // Interfaces
  34. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  35. STDMETHOD(Save)();
  36. STDMETHOD(Refresh)();
  37. STDMETHOD(put_Descriptor)(/*[in]*/ VARIANT vDescriptor);
  38. STDMETHOD(get_Descriptor)(/*[out, retval]*/ VARIANT *pvDescriptor);
  39. STDMETHOD(get_GrantedRights)(/*[out, retval]*/ FAX_ACCESS_RIGHTS_ENUM *pGrantedRights);
  40. STDMETHOD(put_InformationType)(/*[in]*/ long lInformationType);
  41. STDMETHOD(get_InformationType)(/*[out, retval]*/ long *plInformationType);
  42. private:
  43. bool m_bInited;
  44. DWORD m_dwAccessRights;
  45. CFaxPtrLocal<BYTE> m_pbSD;
  46. DWORD m_dwSecurityInformation;
  47. };
  48. #endif //__FAXSECURITY_H_