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.

67 lines
1.6 KiB

  1. // Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
  2. // JOBase.h
  3. #pragma once
  4. _COM_SMARTPTR_TYPEDEF(IWbemServices, __uuidof(IWbemServices));
  5. class CJOBase
  6. {
  7. public:
  8. CJOBase() {}
  9. virtual ~CJOBase() {}
  10. HRESULT Initialize(
  11. LPWSTR pszUser,
  12. LONG lFlags,
  13. LPWSTR pszNamespace,
  14. LPWSTR pszLocale,
  15. IWbemServices *pNamespace,
  16. IWbemContext *pCtx,
  17. IWbemProviderInitSink *pInitSink);
  18. HRESULT GetObjectAsync(
  19. const BSTR ObjectPath,
  20. long lFlags,
  21. IWbemContext __RPC_FAR *pCtx,
  22. IWbemObjectSink __RPC_FAR *pResponseHandler,
  23. CObjProps& objprops,
  24. PFN_CHECK_PROPS pfnChk,
  25. LPWSTR wstrClassName,
  26. LPCWSTR wstrKeyProp);
  27. HRESULT ExecQueryAsync(
  28. const BSTR QueryLanguage,
  29. const BSTR Query,
  30. long lFlags,
  31. IWbemContext __RPC_FAR *pCtx,
  32. IWbemObjectSink __RPC_FAR *pResponseHandler,
  33. CObjProps& objprops,
  34. LPCWSTR wstrClassName,
  35. LPCWSTR wstrKeyProp);
  36. HRESULT CreateInstanceEnumAsync(
  37. const BSTR Class,
  38. long lFlags,
  39. IWbemContext __RPC_FAR *pCtx,
  40. IWbemObjectSink __RPC_FAR *pResponseHandler,
  41. CObjProps& objprops,
  42. LPCWSTR wstrClassName);
  43. HRESULT Enumerate(
  44. IWbemContext __RPC_FAR *pCtx,
  45. IWbemObjectSink __RPC_FAR *pResponseHandler,
  46. std::vector<_bstr_t>& rgNamedJOs,
  47. CObjProps& objprops,
  48. LPCWSTR wstrClassName);
  49. protected:
  50. IWbemServicesPtr m_pNamespace;
  51. CHString m_chstrNamespace;
  52. };