Writes a number of bytes, words, or double words from a buffer to the specified port.
Language
|
Description
|
C/C++
|
void WritePortBuffer( HANDLE hLpt, ULONG PortAddr, USHORT PortWidth, ULONG NumValues, void * buffer);
|
Delphi
|
procedure WritePortBuffer ( hLpt: THandle; PortAddr: LongWord; PortWidth: Word; NumValues: Longword; buffer: Pointer); stdcall;
|
VB
|
Sub WritePortBuffer ( 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 from which an array of values is to be written.
|
Return Value :None.
See also: ReadPortBuffer
|