Share via


IPMRemoteDevice:IDispatch

This interface provides the ability to access and change a specified device object associated with a platform. A device object stores the information required to establish an application-level connection between the development workstation and a target device. For more information about devices, see Devices and Connections.

The object is created by adding a device object to a platform or by retrieving an existing device object from a platform.

The following code sample shows one technique for accessing a device object from an Automation client.

Dim tDevice as Object
For Each tDevice in tPlatform.EnumDevices
  ' Access the remote device object here.
Next tDevice

The following code sample shows a second technique for accessing a device object from an Automation client.

Dim nIndex as Integer
For nIndex = 1 to tPlatman.EnumPlatforms.Count
  Set tPlatform = tPlatman.EnumPlatforms.Item(nIndex)
  ' Access the remote device object here.
Next

The following table shows this interface's methods.

Method Description
IPMRemoteDevice::Id Retrieves the GUID associated with the remote device object.
IPMRemoteDevice::Name Obtains or sets the name of the remote device object.
IPMRemoteDevice::StartupServer Retrieves or sets the startup server for the remote device object.
IPMRemoteDevice::Transport Retrieves or sets the transport for the remote device object.
IPMRemoteDevice::EnumProperties Enumerates the properties associated with the remote device object.
IPMRemoteDevice::GetProperty Obtains a property object for a specified bstrPropId element.
IPMRemoteDevice::AddProperty Adds a property object to the IPMRemoteDevice interface and returns this object.
IPMRemoteDevice::DeleteProperty Deletes the property object corresponding to a specified bstrPropId element.
IPMRemoteDevice::Attach Attaches a connection object to the remote device object and returns the connection object.
IPMRemoteDevice::GetConnection Obtains the connection object for the remote device object.
IPMRemoteDevice::ConfigureStartupServer Configures the startup server for the remote device object.
IPMRemoteDevice::ConfigureTransport Configures the transport for the remote device object.

Requirements

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

See Also

Platform Manager API

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.