Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.4 KiB

  1. ;Get/Set Extended Attrbute Equates
  2. ;The following equates are for EA types
  3. EAISUNDEF equ 00H ; undefined
  4. EAISLOGICAL equ 01H ; logical (0 or 1), 1 byte
  5. EAISBINARY equ 02H ; binary integer 1, 2, or 4 bytes
  6. EAISASCII equ 03H ; ASCII , 0 to 128 bytes
  7. EAISDATE equ 04H ; DOS file date format, 2 bytes
  8. EAISTIME equ 05H ; DOS file time format, 2 bytes
  9. ;The following equates are for EA flags
  10. EASYSTEM equ 8000H ; system defined, bultin
  11. EAREADONLY equ 4000H ; read-only , cannot be changed
  12. EAHIDDEN equ 2000H ; hidden from ATTRIB
  13. EACREATEONLY equ 1000H ; settable only at create time
  14. ;The following equates are for EA failure reason code (set by DOS)
  15. EARCSUCCESS equ 00H ; success
  16. EARCNOTFOUND equ 01H ; name not found
  17. EARCNOSPACE equ 02H ; no space to hold name or value
  18. EARCNOTNOW equ 03H ; name can't be set on this function
  19. EARCNOTEVER equ 04H ; name can't be set
  20. EARCUNDEF equ 05H ; name known to IFS but not supported
  21. EARCDEFBAD equ 06H ; EA definition bad (type,length, etc)
  22. EARCACCESS equ 07H ; EA access denied
  23. EARCBADVAL equ 08H ; bad value
  24. EARCDEVERROR equ 09H ; device error
  25. EARCUNKNOWN equ 0FFFFH ; unknown cause
  26. ;The following equates are for EA file type
  27. EAEXISTING equ 00H ; existing file
  28. EARTL equ 02H ; right to left
  29. EAEXECUTABLE equ 03H ; executable program
  30. EAINSTALLABLE equ 04H ; installable executable program
  31. EAOVERLAY equ 05H ; program overlay
  32. EADEV_DRIVER equ 06H ; device driver
  33. EAIFS_DRIVER equ 07H ; ifs deriver
  34. By_Create equ 0000010B ; set by Extended Open (create)
  35. BY_XA equ 0000100B ; set by Get/Set XA by Handle
  36. ;Extended Attribute Structure
  37. EA STRUC ; extended attribute list
  38. EA_TYPE DB ? ; type
  39. EA_FLAGS DW ? ; flags
  40. EA_RC DB ? ; reason code
  41. EA_NAMELEN DB ? ; name length
  42. EA_VALLEN DW ? ; value length
  43. EA_NAME DB ? ; name
  44. EA ENDS
  45. ;Query Extended Attribute list
  46. QEA STRUC ; extended attribute list
  47. QEA_TYPE DB ? ; type
  48. QEA_FLAGS DW ? ; flags
  49. QEA_NAMELEN DB ? ; name length
  50. QEA_NAME DB ? ; name
  51. QEA ENDS
  52.