void ExitProc(hBlock) | |||||
HANDLE hBlock; | /* selector of information block | */ |
The ExitProc function closes a self-loading application.
hBlock
Specifies the selector for the segment that contains the information block in the Windows (new-style) header.
This function does not return a value.
The Windows header information block identified by the hBlock parameter specifies the linker version number, the length of various tables of data, offsets to those tables, heap and stack sizes, and so on. For a description of the Windows header, see the Microsoft Windows Programmer's Reference, Volume 4.
The ExitProc function is one of three functions required for self-loading Windows applications. The application developer must provide the code for this function and store a pointer to it at offset 0x0018 in the application's loader code and data table.
ExitProc does not need to free memory owned by the application, nor is it necessary for the function to close any open files.