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.

36 lines
1.3 KiB

  1. // podbase.h: interface for the CPodBase class.
  2. //
  3. // Copyright (c)1997-1999 Microsoft Corporation
  4. //
  5. //////////////////////////////////////////////////////////////////////
  6. #if !defined(AFX_PODBASE_H__c5f6cc21_6195_4555_b9d8_3ef327763cae__INCLUDED_)
  7. #define AFX_PODBASE_H__c5f6cc21_6195_4555_b9d8_3ef327763cae__INCLUDED_
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11. #include "GenericClass.h"
  12. class CPodBase : public CGenericClass
  13. {
  14. public:
  15. CPodBase(CRequestObject *pObj, IWbemServices *pNamespace, IWbemContext *pCtx = NULL);
  16. virtual ~CPodBase();
  17. virtual HRESULT PutInst(IWbemClassObject *pInst, IWbemObjectSink *pHandler, IWbemContext *pCtx)
  18. {return WBEM_E_NOT_SUPPORTED;}
  19. virtual HRESULT CreateObject(IWbemObjectSink *pHandler, ACTIONTYPE atAction);
  20. virtual HRESULT ExecMethod(BSTR bstrMethod, bool bIsInstance, IWbemClassObject *pInParams,IWbemObjectSink *pHandler, IWbemContext *pCtx);
  21. private:
  22. HRESULT PodConfigure(IWbemContext *pCtx,BSTR bstrDb, BSTR bstrLog, LONG *pStatus);
  23. HRESULT LogOneRecord(IWbemContext *pCtx,BSTR bstrLog, HRESULT hr, PWSTR bufKey, PWSTR bufValue);
  24. };
  25. #endif // !defined(AFX_PODBASE_H__c5f6cc21_6195_4555_b9d8_3ef327763cae__INCLUDED_)