3 Op-Code: PXENV_FILE_OPEN (00e0h)
5 Input: Far pointer to a t_PXENV_FILE_OPEN parameter structure
6 that has been initialised by the caller.
8 Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE must be
9 returned in AX. The status field in the parameter
10 structure must be set to one of the values represented
11 by the PXENV_STATUS_xxx constants.
13 Description: Opens a file specified by a URL for reading. Multiple
14 files may be opened and used concurrently.
17 typedef struct s_PXENV_FILE_OPEN {
25 Set before calling API service:
27 FileName: URL of file to be opened. Null terminated.
29 Reserved: Must be zero.
32 Returned from API service:
34 FileHandle: Handle for use in subsequent PXE FILE API calls.
36 Status: See PXENV_STATUS_xxx constants.
43 Op-Code: PXENV_FILE_CLOSE (00e1h)
45 Input: Far pointer to a t_PXENV_FILE_CLOSE parameter structure
46 that has been initialised by the caller.
48 Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE must be
49 returned in AX. The status field in the parameter
50 structure must be set to one of the values represented
51 by the PXENV_STATUS_xxx constants.
53 Description: Closes a previously opened file.
56 typedef struct s_PXENV_FILE_CLOSE {
62 Set before calling API service:
64 FileHandle: Handle obtained when file was opened.
67 Returned from API service:
69 Status: See PXENV_STATUS_xxx constants.
76 Op-Code: PXENV_FILE_SELECT (00e2h)
78 Input: Far pointer to a t_PXENV_FILE_SELECT parameter structure
79 that has been initialised by the caller.
81 Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE must be
82 returned in AX. The status field in the parameter
83 structure must be set to one of the values represented
84 by the PXENV_STATUS_xxx constants.
86 Description: Check a previously opened file's readiness for I/O.
89 typedef struct s_PXENV_FILE_SELECT {
93 #define RDY_READ 0x0001
94 } t_PXENV_FILE_SELECT;
97 Set before calling API service:
99 FileHandle: Handle obtained when file was opened.
102 Returned from API service:
104 Ready: Indication of readiness. This can be zero, or more,
105 of the RDY_xxx constants. Multiple values are
106 arithmetically or-ed together.
108 Status: See PXENV_STATUS_xxx constants.
115 Op-Code: PXENV_FILE_READ (00e3h)
117 Input: Far pointer to a t_PXENV_FILE_READ parameter structure
118 that has been initialised by the caller.
120 Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE must be
121 returned in AX. The status field in the parameter
122 structure must be set to one of the values represented
123 by the PXENV_STATUS_xxx constants.
125 This API function is non-blocking. PXENV_EXIT_SUCCESS
126 and PXENV_STATUS_SUCCESS is returned if a data block
127 has been transferred into the caller's buffer.
128 PXENV_EXIT_FAILURE and PXENV_STATUS_FAILURE is
129 returned if no data is available to transfer.
131 Description: Read from a previously opened file.
134 typedef struct s_PXENV_FILE_READ {
142 Set before calling API service:
144 FileHandle: Handle obtained when file was opened.
146 BufferSize: Maximum number of data bytes that can be copied into
149 Buffer: Segment:Offset address of data buffer.
152 Returned from API service:
154 BufferSize: Number of bytes written to the data buffer. End of
155 file if this is zero.
157 Status: See PXENV_STATUS_xxx constants.
164 Op-Code: PXENV_GET_FILE_SIZE (00e4h)
166 Input: Far pointer to a t_PXENV_GET_FILE_SIZE parameter
167 structure that has been initialised by the caller.
169 Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE must be
170 returned in AX. The status field in the parameter
171 structure must be set to one of the values represented
172 by the PXENV_STATUS_xxx constants.
174 Description: Determine size of a previously opened file.
177 typedef struct s_PXENV_GET_FILE_SIZE {
181 } t_PXENV_GET_FILE_SIZE;
184 Set before calling API service:
186 FileHandle: Handle obtained when file was opened.
189 Returned from API service:
191 FileSize: Size of the file in bytes.
193 Status: See PXENV_STATUS_xxx constants.