PrApi: GetDevice

GetDevice

Returns the name of a device in the device list.

 Public Function GetDevice(
	  ByVal devnum As Long,
	  ByRef devname As String ) As Boolean

Parameters

devnum
The ordinal number of the device in the device list.
devname
The name of the device.

Return Values

On error false is returned and the error code and string of the control is set appropriately.

Languages

[Visual Basic] Public Function GetDevice(ByVal devnum As Long, ByRef devname As String) As Boolean

[Delphi] function GetDevice(devnum: Integer; var devname: WideString): Boolean;

[C++] bool GetDevice(long devnum, BSTR* devname);

Remarks

The GetDeviceList() method must be called before using this method.

See Also

Class PrApi Overview PrApi Properties PrApi Methods GetCertificateId GetDeviceInfo