Attaching to an SDO-Enabled Computer
The following code attaches to the local computer as an SDO computer.
HRESULT hr;
CComPtr<ISdoMachine> pSdoMachine;
CLSID clsid;
hr = CLSIDFromProgID(TEXT("IAS.SdoMachine"), &clsid);
if (FAILED(hr))
{
return hr;
}
hr = CoCreateInstance(
clsid,
NULL,
CLSCTX_INPROC_SERVER,
__uuidof(ISdoMachine),
(void**)&pSdoMachine
);
if (FAILED(hr))
{
return hr;
}
//
// Pass NULL to specify local computer.
//
hr = pSdoMachine->Attach(NULL);
if (FAILED(hr))
{
return hr;
}
Attaching to a computer as an SDO computer is the first step in administering the computer through SDO.
For more information, see ISdoMachine, ISdoMachine::Attach.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for