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.
183 lines
2.9 KiB
183 lines
2.9 KiB
// Config.cpp: implementation for the WMI class Nsp_IPConfigSettings
|
|
//
|
|
// Copyright (c)1997-2001 Microsoft Corporation
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
#include "precomp.h"
|
|
#include "Config.h"
|
|
|
|
|
|
/*
|
|
Routine Description:
|
|
|
|
Name:
|
|
|
|
CIPSecConfig::QueryInstance
|
|
|
|
Functionality:
|
|
|
|
Given the query, it returns to WMI (using pSink) all the instances that satisfy the query.
|
|
Actually, what we give back to WMI may contain extra instances. WMI will do the final filtering.
|
|
|
|
Virtual:
|
|
|
|
Yes (part of IIPSecObjectImpl)
|
|
|
|
Arguments:
|
|
|
|
None.
|
|
|
|
Return Value:
|
|
|
|
Success:
|
|
|
|
Failure:
|
|
|
|
|
|
Notes:
|
|
|
|
|
|
*/
|
|
|
|
STDMETHODIMP
|
|
CIPSecConfig::QueryInstance (
|
|
IN LPCWSTR pszQuery,
|
|
IN IWbemContext * pCtx,
|
|
IN IWbemObjectSink * pSink
|
|
)
|
|
{
|
|
return WBEM_E_NOT_SUPPORTED;
|
|
}
|
|
|
|
|
|
/*
|
|
Routine Description:
|
|
|
|
Name:
|
|
|
|
CIPSecConfig::DeleteInstance
|
|
|
|
Functionality:
|
|
|
|
Will delete the wbem object.
|
|
|
|
Virtual:
|
|
|
|
Yes (part of IIPSecObjectImpl)
|
|
|
|
Arguments:
|
|
|
|
pCtx - COM interface pointer given by WMI and needed for various WMI APIs.
|
|
|
|
pSink - COM interface pointer to notify WMI of any created objects.
|
|
|
|
Return Value:
|
|
|
|
WBEM_E_NOT_SUPPORTED
|
|
|
|
Notes:
|
|
|
|
|
|
*/
|
|
|
|
STDMETHODIMP
|
|
CIPSecConfig::DeleteInstance (
|
|
IN IWbemContext * pCtx,
|
|
IN IWbemObjectSink * pSink
|
|
)
|
|
{
|
|
return WBEM_E_NOT_SUPPORTED;
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
Routine Description:
|
|
|
|
Name:
|
|
|
|
CIPSecConfig::PutInstance
|
|
|
|
Functionality:
|
|
|
|
Put a configuration object whose properties are represented by the
|
|
wbem object.
|
|
|
|
Virtual:
|
|
|
|
Yes (part of IIPSecObjectImpl)
|
|
|
|
Arguments:
|
|
|
|
pInst - The wbem object.
|
|
|
|
pCtx - COM interface pointer given by WMI and needed for various WMI APIs.
|
|
|
|
pSink - COM interface pointer to notify WMI of results.
|
|
|
|
Return Value:
|
|
|
|
Success:
|
|
|
|
WBEM_NO_ERROR
|
|
|
|
Failure:
|
|
|
|
Various error codes specifying the error.
|
|
|
|
Notes:
|
|
|
|
This object is not fully defined at this point. No implementation yet.
|
|
|
|
*/
|
|
|
|
STDMETHODIMP
|
|
CIPSecConfig::PutInstance (
|
|
IN IWbemClassObject * pInst,
|
|
IN IWbemContext * pCtx,
|
|
IN IWbemObjectSink * pSink
|
|
)
|
|
{
|
|
return WBEM_E_NOT_SUPPORTED;
|
|
}
|
|
|
|
|
|
/*
|
|
Routine Description:
|
|
|
|
Name:
|
|
|
|
CIPSecConfig::GetInstance
|
|
|
|
Functionality:
|
|
|
|
Create a wbem object by the given key properties (already captured by our key chain object)..
|
|
|
|
Virtual:
|
|
|
|
Yes (part of IIPSecObjectImpl)
|
|
|
|
Arguments:
|
|
|
|
pCtx - COM interface pointer given by WMI and needed for various WMI APIs.
|
|
|
|
pSink - COM interface pointer to notify WMI of any created objects.
|
|
|
|
Return Value:
|
|
|
|
WBEM_E_NOT_SUPPORTED
|
|
|
|
|
|
Notes:
|
|
|
|
|
|
*/
|
|
|
|
STDMETHODIMP
|
|
CIPSecConfig::GetInstance (
|
|
IN IWbemContext * pCtx,
|
|
IN IWbemObjectSink * pSink
|
|
)
|
|
{
|
|
return WBEM_E_NOT_SUPPORTED;
|
|
}
|