| Allows to switch the data register of current LPT to "read" or "write" mode.
|
Language
|
Description
|
C/C++
|
void SetReadMode ( HANDLE hLpt , UCHAR nNewValue )
|
Delphi
|
procedure SetReadMode ( hLpt : THANDLE ; nNewValue : Byte ) ; stdcall
|
VB
|
Sub SetReadMode ( ByVal hLpt As Long , ByVal nNewValue As Byte )
|
Parameters:
| hLpt - the handle returned by a successful call to OpenRapidLpt
| nNewValue - requested mode
0 - sets the data register to "write only" mode (default).
1 - sets the data register to "read only" mode (not supported by SPP!).
Return Value :
None
See also: GetReadMode
|