
6 The MLWorks Windows Interface Library
Windows. The Windows structure is not built in to the MLWorks interactive environment, but is distributed as a set of source and separately compiled files with Windows versions of MLWorks. See the installation notes for your version of MLWorks for details of their location. The Windows interface library provides an ML interface to a selection of Windows SDK functions concerned with window-programming tasks, to allow you to write windowing applications in MLWorks. The library is essentially a mapping of ML identifiers to C identifiers from the Windows SDK. This chapter therefore does not describe the semantics of every ML identifier in the library. For a description of the semantics of a particular ML identifier, refer to the entry in the Windows SDK documentation for the corresponding C identifier.
The ML functions and types that have been defined can mostly be used in the same way as the C functions and types to which they correspond. However, because the ML and C type systems differ, there are exceptions to this rule. For instance, some of the ML functions' parameters and return values differ from those of their C counterparts. Where differences exist between the ML interface and the original C interface, they are documented.
To use the library in your applications, add
require "$.mswindows.__windows"to the start of the relevant source files. To load the library into the MLWorks interactive environment, use the compilation manager's
Build menu, or the functions in Shell.Build.

Generated with Harlequin WebMaker