| Acquires direction ("read" or "write" mode) from LPT Data Register.
|
Language
|
Description
|
C/C++
|
UCHAR GetReadMode ( HANDLE hLpt )
|
Delphi
|
function GetReadMode ( hLpt : THANDLE ) : Byte ; stdcall
|
VB
|
Function GetReadMode ( ByVal hLpt As Long ) As Byte
|
Parameters:
| hLpt - the handle returned by a successful call to OpenRapidLpt
|
Return Value :
current mode
0 - "write only" mode (default).
1 - "read only" mode (not supported by SPP!).
See also: SetReadMode
|