次の方法で共有


IPMRemoteDevice::Attach (Windows CE 5.0)

Send Feedback

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.