|
Opens
the RapidLpt.sys kernel mode WDM device driver under Windows
2000/XP, providing direct access to the LPT hardware.
|
Language
|
Description
|
C/C++
|
HANDLE OpenRapidLpt ( ULONG DeviceInstance )
|
Delphi
|
function OpenRapidLpt ( DeviceInstance : Longword) : THandle; stdcall
|
VB
|
Function OpenRapidLpt ( ByVal DeviceInstance As Long) As Long
|
Parameters:
DeviceInstance - LPT device instance.
Return Value:
The RapidLpt handle value or NULL if fails. Keep this handle opened all time when you are working with RapidLpt functions and close by CloseRapidLpt() at end of application.
Comments:
If the driver was successfully opened, the IsRapidLptOpened() returns True; if the function fails, the IsRapidLptOpened() returns False.
With RapidLpt you can support as many LPT devices as you want. To select the device you need change DriverInstance value from 0 up to maximal number of LPT device installed with RapidLpt driver. For the first application use
hLpt = OpenRapidLpt(0);
For second:
hLpt = OpenRapidLpt(1);
and so on.
See also: CloseRapidLpt IsRapidLptOpened
|