AbstractLW-WIN is a collection of re-usable Win32-specific functions and macros I wrote for various projects.
The code has been developed and used with LispWorks 4.4.6, 5.0.2, and 5.1 for Windows.
It comes with a BSD-style license so you can basically do with it whatever you want.
Download shortcut: http://weitz.de/files/lw-win.tar.gz.
LW-WIN comes with a system definition
for ASDF and with one for
get-sys-color index => color-spec
Returns a CAPI RGB color specification corresponding to the integer identifier
indexif the color is supported. Returns
indexshould be one of the constants listed below.
See the code of the MIDGETS library for an example usage of this function.
These are values that can be used for the
GET-SYS-COLOR. They correspond to the Win32 constants with the "same" (except for hyphens etc.) name, so their meaning should be fairly obvious.
get-month-names => list
Returns a list of all twelve (long) month names (beginning with the name for January) as specified by the current Windows locale.
get-weekday-names => list
Returns a list of all seven (long) weekday names (beginning with the name for Monday) as specified by the current Windows locale.
get-first-day-of-week => integer
Returns the first day of the week as specified by the current Windows locale as an integer - 0 is Monday, 1 is Tuesday, and so on.
with-mapped-file (pointer pathspec &key file-offset number-of-octets) declaration* statement* => result
Executes the code in the body with
number-of-octetsoctecs of the contents of the file denoted by the pathname designator
pathspecbeginning at octet position
file-offsetmapped into RAM. The contents are accessible beginning at the position denoted by the FLI pointer
Note that not all values for
file-offsetare legal. See the MSDN documentation for details.
See the CL-DONGLE library for an example usage of this macro.
Conditions of this type are signalled when errors resulting from calls into the Win32 API are caught. The conditions contain the original numerical error code as well as a human-readable string explaining the type of the error.
error-code win32-condition => error-code
error-message win32-condition => error-message
Readers to access the original error code and message of a
A subclass of
A subclass of
This documentation was prepared with DOCUMENTATION-TEMPLATE.
$Header: /usr/local/cvsrep/lw-win/doc/index.html,v 1.4 2008/04/27 23:17:26 edi Exp $
BACK TO MY HOMEPAGE