Retrieving a Service SDO
The following code retrieves a Server Data Object (SDO) for the Internet Authentication Service (IAS).
HRESULT hr;
CComPtr<IUnknown> pServiceUnknown;
_bstr_t bstrServiceName = L"IAS";
hr = pSdoMachine->GetServiceSDO(
DATA_STORE_LOCAL,
bstrServiceName,
(IUnknown**) &pServiceUnknown
);
if (FAILED(hr))
{
return hr;
}
CComPtr<ISdoServiceControl> pSdoServiceControl;
hr = pServiceUnknown->QueryInterface(
__uuidof(ISdoServiceControl),
(void**) &pSdoServiceControl
);
if (FAILED(hr))
{
return hr;
}
Remarks
You must attach to a computer before you can call any of the ISdoMachine methods.
See Also
Attaching to an SDO-Enabled Computer
ISdoMachine::GetServiceSDO
ISdoServiceControl
Send comments about this topic to Microsoft
Build date: 10/15/2007