Leaked source code of windows server 2003
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.
|
|
// WMIObjectBrokerRegistration.cpp : Implementation of CWMIObjectBrokerRegistration
#include "stdafx.h"
#include "WMIScriptUtils.h"
#include "WMIObjectBrokerRegistration.h"
#include "CommonFuncs.h"
/////////////////////////////////////////////////////////////////////////////
// CWMIObjectBrokerRegistration
STDMETHODIMP CWMIObjectBrokerRegistration::Register(BSTR strProgId, VARIANT_BOOL *bResult) { *bResult = VARIANT_FALSE; if(SUCCEEDED(RegisterCurrentDoc(GetUnknown(), strProgId))) *bResult = VARIANT_TRUE; return S_OK; }
STDMETHODIMP CWMIObjectBrokerRegistration::UnRegister(BSTR strProgId, VARIANT_BOOL *bResult) { *bResult = VARIANT_FALSE; if(SUCCEEDED(UnRegisterCurrentDoc(GetUnknown(), strProgId))) *bResult = VARIANT_TRUE; return S_OK; }
STDMETHODIMP CWMIObjectBrokerRegistration::SetDevEnvironment(IDispatch *pEnv) { return SetVSInstallDirectory(pEnv); }
|