Source code of Windows XP (NT5)
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.

113 lines
2.4 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995
  5. //
  6. // File: cfserv.hxx
  7. //
  8. // Contents:
  9. //
  10. // History: April 19, 1996 t-ptam (Patrick Tam) Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. class CPropertyCache;
  14. class CNWCOMPATFileService: INHERIT_TRACKING,
  15. public CCoreADsObject,
  16. public ISupportErrorInfo,
  17. public IADsFileService,
  18. public IADsFileServiceOperations,
  19. public IADsContainer,
  20. public IADsPropertyList
  21. {
  22. public:
  23. /* IUnknown methods */
  24. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj);
  25. DECLARE_STD_REFCOUNTING;
  26. DECLARE_IADs_METHODS;
  27. DECLARE_IDispatch_METHODS;
  28. DECLARE_ISupportErrorInfo_METHODS;
  29. DECLARE_IADsContainer_METHODS;
  30. DECLARE_IADsService_METHODS;
  31. DECLARE_IADsServiceOperations_METHODS;
  32. DECLARE_IADsFileService_METHODS;
  33. DECLARE_IADsFileServiceOperations_METHODS;
  34. DECLARE_IADsPropertyList_METHODS;
  35. //
  36. // constructor and destructor
  37. //
  38. CNWCOMPATFileService();
  39. ~CNWCOMPATFileService();
  40. static
  41. HRESULT
  42. CreateFileService(
  43. LPTSTR pszADsParent,
  44. LPTSTR pszServerName,
  45. LPTSTR pszFileServiceName,
  46. DWORD dwObjectState,
  47. REFIID riid,
  48. void **ppvObj
  49. );
  50. static
  51. HRESULT
  52. CNWCOMPATFileService::AllocateFileServiceObject(
  53. CNWCOMPATFileService ** ppFileService
  54. );
  55. protected:
  56. STDMETHOD(GetInfo)(
  57. THIS_ BOOL fExplicit,
  58. DWORD dwPropertyID
  59. );
  60. HRESULT
  61. CNWCOMPATFileService::ExplicitGetInfo(
  62. NWCONN_HANDLE hConn,
  63. POBJECTINFO pObjectInfo,
  64. BOOL fExplicit
  65. );
  66. HRESULT
  67. CNWCOMPATFileService::ImplicitGetInfo(
  68. NWCONN_HANDLE hConn,
  69. POBJECTINFO pObjectInfo,
  70. DWORD dwPropertyID,
  71. BOOL fExplicit
  72. );
  73. HRESULT
  74. CNWCOMPATFileService::GetProperty_MaxUserCount(
  75. NWCONN_HANDLE hConn,
  76. BOOL fExplicit
  77. );
  78. HRESULT
  79. CNWCOMPATFileService::GetProperty_HostComputer(
  80. POBJECTINFO pObjectInfo,
  81. BOOL fExplicit
  82. );
  83. BSTR _ServerName;
  84. CAggregatorDispMgr * _pDispMgr;
  85. CADsExtMgr FAR * _pExtMgr;
  86. CPropertyCache *_pPropertyCache;
  87. };