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.

94 lines
2.2 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // InstanceProv.h
  7. //
  8. // Implementation File:
  9. // InstanceProv.cpp
  10. //
  11. // Description:
  12. // Definition of the CInstanceProv.
  13. //
  14. // Author:
  15. // Henry Wang (Henrywa) March 8, 2000
  16. //
  17. // Notes:
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #pragma once
  21. #include <wbemprov.h>
  22. #include "ntrkcomm.h"
  23. class CWbemClassObject;
  24. class CInstanceProv : public CImpersonatedProvider
  25. {
  26. protected:
  27. SCODE SetExtendedStatus(
  28. const char* ,
  29. CWbemClassObject& );
  30. public:
  31. CInstanceProv(
  32. BSTR =NULL,
  33. BSTR =NULL ,
  34. BSTR =NULL,
  35. IWbemContext * = NULL
  36. );
  37. virtual ~CInstanceProv();
  38. HRESULT STDMETHODCALLTYPE DoGetObjectAsync(
  39. BSTR ObjectPath,
  40. long lFlags,
  41. IWbemContext * pCtx,
  42. IWbemObjectSink * pHandler
  43. );
  44. HRESULT STDMETHODCALLTYPE DoPutInstanceAsync(
  45. IWbemClassObject * pInst,
  46. long lFlags,
  47. IWbemContext * pCtx,
  48. IWbemObjectSink * pHandler
  49. ) ;
  50. HRESULT STDMETHODCALLTYPE DoDeleteInstanceAsync(
  51. BSTR ObjectPath,
  52. long lFlags,
  53. IWbemContext * pCtx,
  54. IWbemObjectSink * pHandler
  55. ) ;
  56. HRESULT STDMETHODCALLTYPE DoCreateInstanceEnumAsync(
  57. BSTR RefStr,
  58. long lFlags,
  59. IWbemContext *pCtx,
  60. IWbemObjectSink *pHandler
  61. );
  62. HRESULT STDMETHODCALLTYPE DoExecQueryAsync(
  63. BSTR QueryLanguage,
  64. BSTR Query,
  65. long lFlags,
  66. IWbemContext *pCtx,
  67. IWbemObjectSink *pHandler
  68. ) ;
  69. HRESULT STDMETHODCALLTYPE DoExecMethodAsync(
  70. BSTR strObjectPath,
  71. BSTR strMethodName,
  72. long lFlags,
  73. IWbemContext *pCtx,
  74. IWbemClassObject *pInParams,
  75. IWbemObjectSink *pHandler
  76. );
  77. };
  78. extern long g_cObj;
  79. extern long g_cLock;