IPMRemoteDevice::Attach

The method attaches a connection object to the remote device object and returns the connection object.

HRESULT Attach(
  BSTR bstrProcessName,
  long dwTimeOut,
  VARIANT vtProcessId,
  IPMConnection** ppiConnection 
);

Parameters

  • bstrProcessName
    [in] Name of the process to be attached as a connection object for the remote device.
  • dwTimeOut
    [in] Time-out period for the connection object.
  • vtProcessId
    [in] Optional; Process identifier for the application. If this parameter is not specified, Platform Manager uses the current process identifier.
  • ppiConnection
    [out] Pointer to a pointer to the IPMConnection interface.

Return Values

Returns S_OK if the call was successfully completed. If a failure occurs, the appropriate HRESULT value is returned.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Device.h, Cemgr.idl.

See Also

IPMConnection

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.