ISdoMachine::Attach method (sdoias.h)

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(
  [in] BSTR bstrComputerName
);

Parameters

[in] 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

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008
Target Platform Windows
Header sdoias.h
DLL Iassdo.dll

See also

ISdoMachine

ISdoMachine::GetAttachedComputer