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.

85 lines
2.6 KiB

  1. /******************************************************************
  2. Copyright (c) 1999 Microsoft Corporation
  3. SystemRestore.H -- WMI provider class definition
  4. Generated by Microsoft WBEM Code Generation Engine
  5. Description:
  6. *******************************************************************/
  7. // Property set identification
  8. //============================
  9. #ifndef _SystemRestore_H_
  10. #define _SystemRestore_H_
  11. #define PROVIDER_NAME_SYSTEMRESTORE L"SystemRestore"
  12. // Property name externs -- defined in SystemRestore.cpp
  13. //=================================================
  14. extern const WCHAR* pName ;
  15. extern const WCHAR* pNumber ;
  16. extern const WCHAR* pType ;
  17. extern const WCHAR* pTime ;
  18. class CSystemRestore : public Provider
  19. {
  20. public:
  21. // Constructor/destructor
  22. //=======================
  23. CSystemRestore(LPCWSTR lpwszClassName, LPCWSTR lpwszNameSpace);
  24. virtual ~CSystemRestore();
  25. protected:
  26. // Reading Functions
  27. //============================
  28. virtual HRESULT EnumerateInstances(MethodContext* pMethodContext, long lFlags = 0L);
  29. virtual HRESULT GetObject(CInstance* pInstance, long lFlags = 0L);
  30. virtual HRESULT ExecQuery(MethodContext *pMethodContext, CFrameworkQuery& Query, long lFlags = 0L);
  31. // Writing Functions
  32. //============================
  33. virtual HRESULT PutInstance(const CInstance& Instance, long lFlags = 0L);
  34. virtual HRESULT DeleteInstance(const CInstance& Instance, long lFlags = 0L);
  35. // Other Functions
  36. virtual HRESULT ExecMethod( const CInstance& Instance,
  37. const BSTR bstrMethodName,
  38. CInstance *pInParams,
  39. CInstance *pOutParams,
  40. long lFlags = 0L );
  41. // TO DO: Declare any additional functions and accessor
  42. // functions for private data used by this class
  43. //===========================================================
  44. HRESULT CreateRestorePoint(
  45. CInstance *pInParams,
  46. CInstance *pOutParams);
  47. HRESULT Disable(
  48. CInstance *pInParams,
  49. CInstance *pOutParams);
  50. HRESULT Enable(
  51. CInstance *pInParams,
  52. CInstance *pOutParams);
  53. HRESULT Restore(
  54. CInstance *pInParams,
  55. CInstance *pOutParams);
  56. HRESULT GetLastRestoreStatus(
  57. CInstance *pInParams,
  58. CInstance *pOutParams);
  59. private:
  60. // All data members for CSystemRestore should be included here.
  61. } ;
  62. #endif