Note: The rest of the examples in this chapter only work in LispWorks for Windows.
The following example shows how to use the FLI to call a C function in a Win32 library. The function we are going to call returns the screen position of the mouse pointer, or cursor. The example consists of three stages: setting up the correct data types to pass and receive the data, defining and calling a FLI function to call the Win32 function, and collecting the values returned by the Win32 function to find where the cursor is.
LispWorks Foreign Language Interface User Guide and Reference Manual - 7 Dec 2011