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.

41 lines
1.1 KiB

  1. /******************************************************************
  2. DssJnPtReplica.H -- WMI provider class definition
  3. Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
  4. *******************************************************************/
  5. #ifndef _CDFSJNPTREPLICA_H_
  6. #define _CDFSJNPTREPLICA_H_
  7. #define DFSLINKNAME L"Dependent"
  8. #define REPLICANAME L"Antecedent"
  9. class CDfsJnPtReplica : public Provider
  10. {
  11. private:
  12. HRESULT EnumerateAllDfsJnPtReplicas ( MethodContext *pMethodContext );
  13. HRESULT FindDfsJnPtReplica ( LPWSTR lpEntryPath, LPWSTR lpServerName, LPWSTR lpShareName );
  14. void MakeObjectPath ( LPWSTR lpReplicaName, LPWSTR lpServerName, LPWSTR lpShareName, LPWSTR &lpJnPtReplicaObject );
  15. protected:
  16. HRESULT EnumerateInstances ( MethodContext *pMethodContext, long lFlags = 0L ) ;
  17. HRESULT GetObject ( CInstance *pInstance, long lFlags, CFrameworkQuery &Query ) ;
  18. public:
  19. CDfsJnPtReplica ( LPCWSTR lpwszClassName, LPCWSTR lpwszNameSpace ) ;
  20. virtual ~CDfsJnPtReplica () ;
  21. private:
  22. CHString m_ComputerName;
  23. } ;
  24. #endif