WndLpt Gate Application

Use wndlpt_gate C++ and VB.NET projects as example to get direct access to the LPT port from you custom application.

WndLpt library vis_wndlpt.dll exports functions to direct access to the LPT port:

 

// High Level

SetValue(uint32 data) // Use 1.5 bytes (12 bits) of data

uint32 GetValue()     // Use 5 bits of returned value

 

// Low Level

Out32(uint32 address, uint32 data) // Used 2 bytes of address and 1 byte of data

uint32 Inp32(uint32 address)       // Use 2 bytes of address and 1 byte of returned value

 

WndLpt Gate for VB.NET Window

WndLpt Remap Library

Use wndlpt_remap C++ and Delphi projects from SDK collection as template to build library wndlpt_remap.dll. It must exports necessary functions:

 

uint32 wndlptRemapOut32(uint32 from)
uint32 wndlptUnremapOut32(uint32 from)
uint32 wndlptRemapIn32(uint32 from)

 

Then you must put this DLL library to the executable file directory and restart WndLpt Application or Plugin.

Now before writing any value to the LPT port WndLpt converts it to the new form using wndlptRemapOut32 function.

Function wndlptUnremapOut32 used to convert value after reading lpt output states.

Function wndlptRemapIn32 used to convert value after reading lpt input states.