The Attach method attaches to an SDO computer. Attaching to an SDO computer is the first step is using the SDO API to administer that computer.
HRESULT Attach( BSTR bstrComputerName );
Specifies a BSTR variable that contains the name of the computer to which to attach. If this parameter specifies a NULL string, the local computer is attached.
If the method succeeds the return value is S_OK.
If a computer is already attached, the return value is E_FAIL.
The method may also return one of the following error codes.
Use the ISdoMachine::GetAttachedComputer method to determine if a computer is already attached.
|Windows version||None supported Windows Server 2008|