| Sets the current mode of current LPT.
|
Language
|
Description
|
C/C++
|
void SetCurrentLptMode ( HANDLE hLpt , UCHAR nNewValue )
|
Delphi
|
procedure SetCurrentLptMode(hLpt: THANDLE; nNewValue: Byte); stdcall
|
VB
|
Sub SetCurrentLptMode ( ByVal hLpt As Long , ByVal nNewValue As Byte )
|
Parameters:
| hLpt - the handle returned by a successful call to OpenRapidLpt
|
| nNewValue - one from the list:
| LPT_SPP_MODE
LPT_PS2_MODE
LPT_EPP_MODE
Return Value :
None
Comments:
You must read the value back immediately after you set the new LPT mode to make sure the selected mode is
supported by current LPT.
See also: GetCurrentLptMode
|