ISdoMachine::Attach method

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.

Syntax

HRESULT Attach(
  BSTR bstrComputerName
);

Parameters

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.

Return Value

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.

Remarks

Use the ISdoMachine::GetAttachedComputer method to determine if a computer is already attached.

Requirements

   
Windows version None supported Windows Server 2008
Target Platform Windows
Header sdoias.h
DLL Iassdo.dll

See Also

ISdoMachine

ISdoMachine::GetAttachedComputer