Hooks and Procedures

This section describes dialog procedures, window procedures, and hooks. It shows the input parameters and returns that the operating system expects an application to use in application procedures and that can be called by the operating system in response to certain events.

Procedures and hooks are application code that is called by the system in response to certain events.

The names and parameter lists of functions are contained in header files that are incorporated into the application when it is compiled. Their addresses are contained in .LIB files that are incorporated at link time.

The names of procedures and hooks are defined by the application, and their parameter lists are defined by the system. Function prototypes for these procedures and hooks are in PMWIN.H. The prototypes have sample names that can be changed by the programmer before they are inserted into the application source code.

The application passes the address of these procedures and hooks in the following ways: