1.2 Using the FLI to get the cursor position

Note: The rest of the examples in this chapter only work for LispWorks for the Windows operating system.

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 an FLI function to call the Win32 function, and collecting the values returned by the Win32 function to find where the cursor is.

1.2.1 Defining FLI types

1.2.2 Defining an FLI function

1.2.3 Accessing the results

LispWorks Foreign Language Interface User Guide and Reference Manual - 27 Mar 2005