14.1.6 Declaring Callback Functions

Callback functions must be declared as follows:

cProc TestWndProc, <FAR,PUBLIC>, <si,di>
     parmW hWnd
     parmW message
     parmW wParam
     parmD lParam
cBegin TestWndProc
     .
     .
     .
cEnd TestWndProc

Callback functions must be defined within a code segment.