Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. FILE OPEN
  2. Op-Code: PXENV_FILE_OPEN (00e0h)
  3. Input: Far pointer to a t_PXENV_FILE_OPEN parameter structure
  4. that has been initialised by the caller.
  5. Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE must be
  6. returned in AX. The status field in the parameter
  7. structure must be set to one of the values represented
  8. by the PXENV_STATUS_xxx constants.
  9. Description: Opens a file specified by a URL for reading. Multiple
  10. files may be opened and used concurrently.
  11. typedef struct s_PXENV_FILE_OPEN {
  12. PXENV_STATUS Status;
  13. UINT16 FileHandle;
  14. SEGOFF16 FileName;
  15. UINT32 Reserved;
  16. } t_PXENV_FILE_OPEN;
  17. Set before calling API service:
  18. FileName: URL of file to be opened. Null terminated.
  19. Reserved: Must be zero.
  20. Returned from API service:
  21. FileHandle: Handle for use in subsequent PXE FILE API calls.
  22. Status: See PXENV_STATUS_xxx constants.
  23. FILE CLOSE
  24. Op-Code: PXENV_FILE_CLOSE (00e1h)
  25. Input: Far pointer to a t_PXENV_FILE_CLOSE parameter structure
  26. that has been initialised by the caller.
  27. Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE must be
  28. returned in AX. The status field in the parameter
  29. structure must be set to one of the values represented
  30. by the PXENV_STATUS_xxx constants.
  31. Description: Closes a previously opened file.
  32. typedef struct s_PXENV_FILE_CLOSE {
  33. PXENV_STATUS Status;
  34. UINT16 FileHandle;
  35. } t_PXENV_FILE_CLOSE;
  36. Set before calling API service:
  37. FileHandle: Handle obtained when file was opened.
  38. Returned from API service:
  39. Status: See PXENV_STATUS_xxx constants.
  40. FILE SELECT
  41. Op-Code: PXENV_FILE_SELECT (00e2h)
  42. Input: Far pointer to a t_PXENV_FILE_SELECT parameter structure
  43. that has been initialised by the caller.
  44. Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE must be
  45. returned in AX. The status field in the parameter
  46. structure must be set to one of the values represented
  47. by the PXENV_STATUS_xxx constants.
  48. Description: Check a previously opened file's readiness for I/O.
  49. typedef struct s_PXENV_FILE_SELECT {
  50. PXENV_STATUS Status;
  51. UINT16 FileHandle;
  52. UINT16 Ready;
  53. #define RDY_READ 0x0001
  54. } t_PXENV_FILE_SELECT;
  55. Set before calling API service:
  56. FileHandle: Handle obtained when file was opened.
  57. Returned from API service:
  58. Ready: Indication of readiness. This can be zero, or more,
  59. of the RDY_xxx constants. Multiple values are
  60. arithmetically or-ed together.
  61. Status: See PXENV_STATUS_xxx constants.
  62. FILE READ
  63. Op-Code: PXENV_FILE_READ (00e3h)
  64. Input: Far pointer to a t_PXENV_FILE_READ parameter structure
  65. that has been initialised by the caller.
  66. Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE must be
  67. returned in AX. The status field in the parameter
  68. structure must be set to one of the values represented
  69. by the PXENV_STATUS_xxx constants.
  70. This API function is non-blocking. PXENV_EXIT_SUCCESS
  71. and PXENV_STATUS_SUCCESS is returned if a data block
  72. has been transferred into the caller's buffer.
  73. PXENV_EXIT_FAILURE and PXENV_STATUS_FAILURE is
  74. returned if no data is available to transfer.
  75. Description: Read from a previously opened file.
  76. typedef struct s_PXENV_FILE_READ {
  77. PXENV_STATUS Status;
  78. UINT16 FileHandle;
  79. UINT16 BufferSize;
  80. SEGOFF16 Buffer;
  81. } t_PXENV_FILE_READ;
  82. Set before calling API service:
  83. FileHandle: Handle obtained when file was opened.
  84. BufferSize: Maximum number of data bytes that can be copied into
  85. Buffer.
  86. Buffer: Segment:Offset address of data buffer.
  87. Returned from API service:
  88. BufferSize: Number of bytes written to the data buffer. End of
  89. file if this is zero.
  90. Status: See PXENV_STATUS_xxx constants.
  91. GET FILE SIZE
  92. Op-Code: PXENV_GET_FILE_SIZE (00e4h)
  93. Input: Far pointer to a t_PXENV_GET_FILE_SIZE parameter
  94. structure that has been initialised by the caller.
  95. Output: PXENV_EXIT_SUCCESS or PXENV_EXIT_FAILURE must be
  96. returned in AX. The status field in the parameter
  97. structure must be set to one of the values represented
  98. by the PXENV_STATUS_xxx constants.
  99. Description: Determine size of a previously opened file.
  100. typedef struct s_PXENV_GET_FILE_SIZE {
  101. PXENV_STATUS Status;
  102. UINT16 FileHandle;
  103. UINT32 FileSize;
  104. } t_PXENV_GET_FILE_SIZE;
  105. Set before calling API service:
  106. FileHandle: Handle obtained when file was opened.
  107. Returned from API service:
  108. FileSize: Size of the file in bytes.
  109. Status: See PXENV_STATUS_xxx constants.