BootApp

3.1

  void BootApp(hBlock, hFile)    
  HANDLE hBlock; /* handle of information block */
  HANDLE hFile; /* handle of executable file */

The BootApp function loads the given application.

Parameters

hBlock

Identifies the selector for the segment that contains the information block in the Windows (new-style) header.

hFile

Identifies the executable file that contains the application. The hFile parameter must be a valid MS-DOS file handle.

Return Value

This function does not return a value.

Comments

The information block in the Windows header that is 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 BootApp 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 the function at offset 0x0004 in the application's loader code and data table.

The Windows kernel calls this function after loading the application's executable header and data tables.