EntryAddrProc

3.1

  DWORD EntryAddrProc(hBlock, wEntryNo)    
  HANDLE hBlock; /* selector for information block */
  WORD wEntryNo; /* entry-table procedure index */

The EntryAddrProc function retrieves an address for the specified procedure.

Parameters

hBlock

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

wEntryNo

Specifies the index to the entry in an entry table that identifies the procedure for which the function should return an address.

Return Value

The return value is the address of the specified procedure if the function is successful. Otherwise, the return value is zero.

Comments

The wEntryNo parameter is also known as the procedure's ordinal number.

The EntryAddrProc function is one of three functions supplied by the Windows kernel. The kernel loads a pointer to this function at offset 0x0014 in the loader's code and data table. The kernel loads the pointer before calling the private startup procedure (the BootApp function).

EntryAddrProc is called from the LoadAppSeg function, which the application developer must supply.