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.

171 lines
3.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1997
  5. //
  6. // File: ciiscomp.hxx
  7. //
  8. // Contents: CIISComputer object
  9. //
  10. // History: 20-7-97 SophiaC Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. class CIISComputer;
  14. class CIISComputer : INHERIT_TRACKING,
  15. public IISComputer2,
  16. public IPrivateUnknown,
  17. public IPrivateDispatch,
  18. public IADsExtension,
  19. public INonDelegatingUnknown
  20. {
  21. public:
  22. /* IUnknown methods */
  23. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  24. DECLARE_DELEGATING_REFCOUNTING
  25. //
  26. // INonDelegatingUnkown methods declaration for NG_QI, definition for
  27. // NG_AddRef adn NG_Release.
  28. //
  29. STDMETHOD(NonDelegatingQueryInterface)(THIS_
  30. const IID&,
  31. void **
  32. );
  33. DECLARE_NON_DELEGATING_REFCOUNTING
  34. DECLARE_IDispatch_METHODS
  35. DECLARE_IPrivateUnknown_METHODS
  36. DECLARE_IPrivateDispatch_METHODS
  37. STDMETHOD(Operate)(
  38. THIS_
  39. DWORD dwCode,
  40. VARIANT varUserName,
  41. VARIANT varPassword,
  42. VARIANT varReserved
  43. );
  44. STDMETHOD(PrivateGetIDsOfNames)(
  45. THIS_
  46. REFIID riid,
  47. OLECHAR FAR* FAR* rgszNames,
  48. unsigned int cNames,
  49. LCID lcid,
  50. DISPID FAR* rgdispid) ;
  51. STDMETHOD(PrivateInvoke)(
  52. THIS_
  53. DISPID dispidMember,
  54. REFIID riid,
  55. LCID lcid,
  56. WORD wFlags,
  57. DISPPARAMS FAR* pdispparams,
  58. VARIANT FAR* pvarResult,
  59. EXCEPINFO FAR* pexcepinfo,
  60. unsigned int FAR* puArgErr
  61. ) ;
  62. DECLARE_IADs_METHODS
  63. CIISComputer::CIISComputer();
  64. CIISComputer::~CIISComputer();
  65. static
  66. HRESULT
  67. CIISComputer::CreateComputer(
  68. IUnknown *pUnkOuter,
  69. REFIID riid,
  70. void **ppvObj
  71. );
  72. static
  73. HRESULT
  74. CIISComputer::AllocateComputerObject(
  75. IUnknown *pUnkOuter,
  76. CCredentials& Credentials,
  77. CIISComputer ** ppComputer
  78. );
  79. HRESULT
  80. CIISComputer::InitializeComputerObject(
  81. LPWSTR pszServerName,
  82. LPWSTR pszPath
  83. );
  84. STDMETHOD (Backup)(
  85. BSTR bstrLocation,
  86. LONG lVersion,
  87. LONG lFlags
  88. );
  89. STDMETHOD (BackupWithPassword)(
  90. BSTR bstrLocation,
  91. LONG lVersion,
  92. LONG lFlags,
  93. BSTR bstrPassword
  94. );
  95. STDMETHOD (SaveData)();
  96. STDMETHOD (Export)(
  97. BSTR bstrPassword,
  98. BSTR bstrFilename,
  99. BSTR bstrSourcePath,
  100. LONG lFlags
  101. );
  102. STDMETHOD (Import)(
  103. BSTR bstrPassword,
  104. BSTR bstrFilename,
  105. BSTR bstrSourcePath,
  106. BSTR bstrDestPath,
  107. LONG lFlags
  108. );
  109. STDMETHOD (Restore)(
  110. BSTR bstrLocation,
  111. LONG lVersion,
  112. LONG lFlags
  113. );
  114. STDMETHOD (RestoreWithPassword)(
  115. BSTR bstrLocation,
  116. LONG lVersion,
  117. LONG lFlags,
  118. BSTR bstrPassword
  119. );
  120. STDMETHOD (EnumBackups)(
  121. BSTR bstrLocation,
  122. LONG lIndex,
  123. VARIANT *pvVersion,
  124. VARIANT *pvLocation,
  125. VARIANT *pvDate
  126. );
  127. STDMETHOD (DeleteBackup)(
  128. BSTR bstrLocation,
  129. LONG lVersion
  130. );
  131. protected:
  132. IADs FAR * _pADs;
  133. LPWSTR _pszServerName;
  134. LPWSTR _pszMetaBasePath;
  135. BOOL _fDispInitialized;
  136. CAggregateeDispMgr FAR * _pDispMgr;
  137. CCredentials _Credentials;
  138. IMSAdminBase *_pAdminBase; //interface pointer
  139. };