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.

121 lines
4.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998 Active Voice Corporation. All Rights Reserved.
  4. //
  5. // TAPIDialer(tm) and ActiveDialer(tm) are trademarks of Active Voice Corporation.
  6. //
  7. // Other brand and product names used herein are trademarks of their respective owners.
  8. //
  9. // The entire program and user interface including the structure, sequence, selection,
  10. // and arrangement of the dialog, the exclusively "yes" and "no" choices represented
  11. // by "1" and "2," and each dialog message are protected by copyrights registered in
  12. // the United States and by international treaties.
  13. //
  14. // Protected by one or more of the following United States patents: 5,070,526; 5,488,650;
  15. // 5,434,906; 5,581,604; 5,533,102; 5,568,540, 5,625,676.
  16. //
  17. // Active Voice Corporation
  18. // Seattle, Washington
  19. // USA
  20. //
  21. /////////////////////////////////////////////////////////////////////////////////////////
  22. /* $FILEHEADER
  23. *
  24. * FILE
  25. * ConfInfo.h
  26. *
  27. * CLASS
  28. * CConfInfo
  29. *
  30. */
  31. #if !defined(AFX_CONFINFO_H__CE5346F6_4AFC_11D1_84F1_00608CBAE3F4__INCLUDED_)
  32. #define AFX_CONFINFO_H__CE5346F6_4AFC_11D1_84F1_00608CBAE3F4__INCLUDED_
  33. #if _MSC_VER >= 1000
  34. #pragma once
  35. #endif // _MSC_VER >= 1000
  36. #include <atlbase.h>
  37. #include <iads.h>
  38. #include <rend.h>
  39. #include <sdpblb.h>
  40. typedef enum tagConfCommitError
  41. {
  42. CONF_COMMIT_ERROR_NONE=0,
  43. CONF_COMMIT_ERROR_INVALIDDATETIME,
  44. CONF_COMMIT_ERROR_INVALIDNAME,
  45. CONF_COMMIT_ERROR_INVALIDOWNER,
  46. CONF_COMMIT_ERROR_INVALIDDESCRIPTION,
  47. CONF_COMMIT_ERROR_INVALIDSECURITYDESCRIPTOR,
  48. CONF_COMMIT_ERROR_MDHCPFAILED,
  49. CONF_COMMIT_ERROR_GENERALFAILURE,
  50. }ConfCommitError;
  51. class CConfInfo
  52. {
  53. public:
  54. CConfInfo();
  55. virtual ~CConfInfo();
  56. // Members
  57. public:
  58. IADsSecurityDescriptor *m_pSecDesc;
  59. ITDirectoryObjectConference *m_pITConf;
  60. long m_lScopeID;
  61. bool m_bNewConference;
  62. bool m_bDateTimeChange;
  63. // TRUE if user selects a row from the scopes list
  64. bool m_bUserSelected;
  65. // TRUE if has been showed the 'Start/Stop Change Date Message'
  66. bool m_bDateChangeMessage;
  67. protected:
  68. ITRendezvous *m_pITRend;
  69. ITDirectoryObject **m_ppDirObject;
  70. BSTR m_bstrName;
  71. BSTR m_bstrDescription;
  72. BSTR m_bstrOwner;
  73. SYSTEMTIME m_stStartTime;
  74. SYSTEMTIME m_stStopTime;
  75. DATE m_dateStart;
  76. DATE m_dateStop;
  77. bool m_bSecuritySet;
  78. // Attributes
  79. public:
  80. void get_Name(BSTR *pbstrName);
  81. void put_Name(BSTR bstrName);
  82. void get_Description(BSTR *pbstrDescription);
  83. void put_Description(BSTR bstrDescription);
  84. void get_Originator(BSTR *pbstrOwner);
  85. void put_Originator(BSTR bstrOwner);
  86. void GetStartTime(USHORT *nYear, BYTE *nMonth, BYTE *nDay, BYTE *nHour, BYTE *nMinute);
  87. void SetStartTime(USHORT nYear, BYTE nMonth, BYTE nDay, BYTE nHour, BYTE nMinute);
  88. void GetStopTime(USHORT *nYear, BYTE *nMonth, BYTE *nDay, BYTE *nHour, BYTE *nMinute);
  89. void SetStopTime(USHORT nYear, BYTE nMonth, BYTE nDay, BYTE nHour, BYTE nMinute);
  90. void GetPrimaryUser( BSTR *pbstrTrustee );
  91. bool IsNewConference() { return m_bNewConference; }
  92. bool WasSecuritySet() { return true; /*return m_bSecuritySet;*/ }
  93. void SetSecuritySet( bool bSet ) { m_bSecuritySet = bSet; }
  94. // Operations
  95. public:
  96. static bool PopulateListWithMDHCPScopeDescriptions( HWND hWndList );
  97. static HRESULT CreateMDHCPAddress( ITSdp *pSdp, SYSTEMTIME *pStart, SYSTEMTIME *pStop, long lScopeID, bool bUserSelected );
  98. static HRESULT SetMDHCPAddress( ITMediaCollection *pMC, BSTR bstrAddress, long lCount, unsigned char nTTL );
  99. HRESULT Init(ITRendezvous *pITRend, ITDirectoryObjectConference *pITConf, ITDirectoryObject **ppDirObject, bool bNewConf );
  100. HRESULT CommitGeneral( DWORD& dwCommitError );
  101. HRESULT CommitSecurity( DWORD& dwCommitError, bool bCreate );
  102. HRESULT AddDefaultACEs( bool bCreate );
  103. };
  104. #endif // !defined(AFX_CONFINFO_H__CE5346F6_4AFC_11D1_84F1_00608CBAE3F4__INCLUDED_)