PROTECTED-MODE TFTP/MTFTP READ FILE

Op-Code: PXENV_TFTP_READ_FILE_PMODE
Input: ES:DI points to a t_PXENV_TFTP_READ_FILE_PMODE parameter structure that has been initialized by the caller.
Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE will be returned in AX, with the CF set accordingly. The status field in the parameter structure will be set to one of the values represented by the PXENV_STATUS_xxx constants. When a read is successful, the PacketCount and PacketLength fields will also be filled in.
Description: This service will open a TFTP or MTFTP connection, download the entire file, and close the connection. It is up to the caller to make sure that there is enough free memory to download the file into.

For example, you cannot download a 2-MB file into base memory (below 640K).

Note: UDP open must be called before UDP read or write can be used after transferring a file with this service.

This service cannot be called while in real mode.