Reads a number of bytes, words, or double words from the specified port address into a buffer.
Language
|
Description
|
C/C++
|
void ReadPortBuffer( HANDLE hLpt, ULONG PortAddr, USHORT PortWidth, ULONG NumValues, void * buffer);
|
Delphi
|
procedure ReadPortBuffer ( hLpt: THandle; PortAddr: LongWord; PortWidth: Word; NumValues: Longword; buffer: Pointer); stdcall;
|
VB
|
Sub ReadPortBuffer ( ByVal hLpt As Long, ByVal PortAddr As Long, ByRef PortWidth As Integer; ByVal PortWidth As Long, ByRef buffer As Any)
|
Parameters:
| hLpt - the handle returned by a successful call to OpenRapidLpt
|
| PortWidth - size of port in bytes (1, 2, or 4);
|
| NumValue - number of values to read
|
| buffer - a buffer into which an array of values is read.
|
Return Value :None.
See also : WritePortBuffer
|