PrApi: UseDeviceN

UseDeviceN

Opens a PR device.

 Public Function UseDeviceN(
	  ByVal devno As Long,
	  ByVal mode As Long ) As Boolean

Parameters

devno
The ordinal number of the device to open. The devices are indexed from 0 to N-1.
mode
The opening mode. Check the PR_USAGEMODE parameters for more information.

Return Values

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

Languages

[Visual Basic] Public Function UseDeviceN(ByVal devno As Long, ByVal mode As Long) As Boolean

[Delphi] function UseDeviceN(devno: Integer; mode: Integer): Boolean;

[C++] bool UseDeviceN(long devno, long mode);

Remarks

See Also

Class PrApi Overview PrApi Properties PrApi Methods UseDevice Version