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.
38 lines
865 B
38 lines
865 B
//***********************************************
|
|
|
|
// Microsoft Confidential
|
|
// Copyright (c) Microsoft Corporation 2000
|
|
// All rights reserved
|
|
//
|
|
// WMI interface class
|
|
//
|
|
// History: 10-Mar-00 SitaramR Created
|
|
//
|
|
//*************************************************************
|
|
|
|
#include "windows.h"
|
|
#include "ole2.h"
|
|
#include "rsopdbg.h"
|
|
#include <initguid.h>
|
|
#include <wbemcli.h>
|
|
|
|
class CLocator
|
|
{
|
|
|
|
public:
|
|
|
|
CLocator() {}
|
|
|
|
IWbemLocator * GetWbemLocator();
|
|
IWbemServices * GetPolicyConnection();
|
|
IWbemServices * GetUserConnection();
|
|
IWbemServices * GetMachConnection();
|
|
|
|
private:
|
|
|
|
XInterface<IWbemLocator> m_xpWbemLocator;
|
|
XInterface<IWbemServices> m_xpPolicyConnection;
|
|
XInterface<IWbemServices> m_xpUserConnection;
|
|
XInterface<IWbemServices> m_xpMachConnection;
|
|
};
|
|
|