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.
|
|
/*++
Copyright (c) 2000-2001 Microsoft Corporation
Module Name:
queryhelper.h
Abstract:
Definition of: CQueryHelper
Author:
Mohit Srivastava 22-Mar-2001
Revision History:
--*/
#ifndef _queryhelper_h_
#define _queryhelper_h_
#include <windows.h>
#include <wbemprov.h>
#include <stdio.h>
#include <atlbase.h>
#include <genlex.h>
#include "sqllex.h"
#include <sql_1ext.h>
#include <dbgutil.h>
#include "wbemservices.h"
#include "schema.h"
class CQueryHelper { public: CQueryHelper( BSTR i_bstrQueryLanguage, BSTR i_bstrQuery, CWbemServices* i_pNamespace, IWbemObjectSink* i_pResponseHandler);
~CQueryHelper();
void GetAssociations();
void GetInstances();
bool IsAssoc() const { return (m_pWmiAssoc != NULL); }
private: WMI_CLASS* m_pWmiClass; WMI_ASSOCIATION* m_pWmiAssoc;
CWbemServices* m_pNamespace; CComPtr<IWbemObjectSink> m_spResponseHandler;
SQL_LEVEL_1_RPN_EXPRESSION_EXT* m_pExp; };
#endif
|