windows-nt/Source/XPSP1/NT/inetsrv/iis/admin/wmiprov_dynamic/queryhelper.h
2020-09-26 16:20:57 +08:00

68 lines
1.1 KiB
C++

/*++
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