Condividi tramite


Metodo ISdoMachine::Attach (sdoias.h)

Il metodo Attach si collega a un computer SDO. Il collegamento a un computer SDO è il primo passaggio consiste nell'usare l'API SDO per amministrare il computer.

Sintassi

HRESULT Attach(
  [in] BSTR bstrComputerName
);

Parametri

[in] bstrComputerName

Specifica una variabile BSTR che contiene il nome del computer a cui collegarsi. Se questo parametro specifica una stringa NULL , il computer locale viene collegato.

Valore restituito

Se il metodo ha esito positivo, il valore restituito è S_OK.

Se un computer è già collegato, il valore restituito è E_FAIL.

Il metodo può anche restituire uno dei codici di errore seguenti.

Commenti

Utilizzare il metodo ISdoMachine::GetAttachedComputer per determinare se un computer è già collegato.

Requisiti

Requisito Valore
Client minimo supportato Nessuno supportato
Server minimo supportato Windows Server 2008
Piattaforma di destinazione Windows
Intestazione sdoias.h
DLL Iassdo.dll

Vedi anche

ISdoMachine

ISdoMachine::GetAttachedComputer