Source code of Windows XP (NT5)
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.1 KiB

  1. /*++
  2. Copyright (c) 2000-2001 Microsoft Corporation
  3. Module Name:
  4. queryhelper.h
  5. Abstract:
  6. Definition of:
  7. CQueryHelper
  8. Author:
  9. Mohit Srivastava 22-Mar-2001
  10. Revision History:
  11. --*/
  12. #ifndef _queryhelper_h_
  13. #define _queryhelper_h_
  14. #include <windows.h>
  15. #include <wbemprov.h>
  16. #include <stdio.h>
  17. #include <atlbase.h>
  18. #include <genlex.h>
  19. #include "sqllex.h"
  20. #include <sql_1ext.h>
  21. #include <dbgutil.h>
  22. #include "wbemservices.h"
  23. #include "schema.h"
  24. class CQueryHelper
  25. {
  26. public:
  27. CQueryHelper(
  28. BSTR i_bstrQueryLanguage,
  29. BSTR i_bstrQuery,
  30. CWbemServices* i_pNamespace,
  31. IWbemObjectSink* i_pResponseHandler);
  32. ~CQueryHelper();
  33. void GetAssociations();
  34. void GetInstances();
  35. bool IsAssoc() const
  36. {
  37. return (m_pWmiAssoc != NULL);
  38. }
  39. private:
  40. WMI_CLASS* m_pWmiClass;
  41. WMI_ASSOCIATION* m_pWmiAssoc;
  42. CWbemServices* m_pNamespace;
  43. CComPtr<IWbemObjectSink> m_spResponseHandler;
  44. SQL_LEVEL_1_RPN_EXPRESSION_EXT* m_pExp;
  45. };
  46. #endif