Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

pxe_extensions 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. UINT32 Reserved;
  15. UINT8 FileName[256];
  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. Description: Read from a previously opened file.
  71. typedef struct s_PXENV_FILE_READ {
  72. PXENV_STATUS Status;
  73. UINT16 FileHandle;
  74. UINT16 BufferSize;
  75. SEGOFF16 Buffer;
  76. } t_PXENV_FILE_READ;
  77. Set before calling API service:
  78. FileHandle: Handle obtained when file was opened.
  79. BufferSize: Maximum number of data bytes that can be copied into
  80. Buffer.
  81. Buffer: Segment:Offset address of data buffer.
  82. Returned from API service:
  83. BufferSize: Number of bytes written to the data buffer. End of
  84. file if this is zero.
  85. Status: See PXENV_STATUS_xxx constants.