Leaked source code of windows server 2003
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.

89 lines
1.6 KiB

  1. BREAK <FILEMODE.INC - Misc. File API Values>
  2. ;
  3. ; Microsoft Confidential
  4. ; Copyright (C) Microsoft Corporation 1991
  5. ; All Rights Reserved.
  6. ;
  7. ;** FILEMODE.INC - Misc. File API Values
  8. ;
  9. ; These values are all visable to the client program as part of
  10. ; an API.
  11. ;** Standard I/O file handles
  12. ;
  13. STDIN equ 0
  14. STDOUT equ 1
  15. STDERR equ 2
  16. STDAUX equ 3
  17. STDPRN equ 4
  18. ;** File Modes
  19. ACCESS_MASK equ 0Fh
  20. OPEN_FOR_READ equ 00h
  21. OPEN_FOR_WRITE equ 01h
  22. OPEN_FOR_BOTH equ 02h
  23. EXEC_OPEN equ 03h ; access code of 3 indicates that open was
  24. ; made from exec
  25. SHARING_MASK equ 0F0h
  26. SHARING_COMPAT equ 000h
  27. SHARING_DENY_BOTH equ 010h
  28. SHARING_DENY_WRITE equ 020h
  29. SHARING_DENY_READ equ 030h
  30. SHARING_DENY_NONE equ 040h
  31. SHARING_NET_FCB equ 070h
  32. SHARING_NO_INHERIT equ 080h
  33. ;** Extended Open Definitions
  34. ;
  35. RESERVED_BITS_MASK equ 0FE00h ; reserved bits for extended open flags
  36. EXISTS_MASK equ 0Fh ; "file exists" action field
  37. NOT_EXISTS_MASK equ 0F0h
  38. ;* SF_MODE values
  39. AUTO_COMMIT_WRITE equ 4000h
  40. INT_24_ERROR equ 2000h
  41. ;* Flags in EXTOPEN_ON
  42. EXT_OPEN_ON equ 01h
  43. EXT_FILE_NOT_EXISTS equ 04h
  44. EXT_OPEN_I24_OFF equ 02h
  45. ;* Flags in EXTOPEN_FLAG
  46. ACTION_OPENED equ 01h
  47. ACTION_CREATED_OPENED equ 02h
  48. ACTION_REPLACED_OPENED equ 03h
  49. EXT_EXISTS_OPEN equ 01h
  50. EXT_EXISTS_FAIL equ 00h
  51. EXT_NEXISTS_CREATE equ 10h
  52. ;** Extended Open Structure
  53. ;
  54. EXT_OPEN_PARM struc
  55. EXT_SET_LIST dd ?
  56. EXT_NUM_OF_PARM dw ?
  57. EXT_OPEN_PARM ends
  58. ;* Unused. should be deleted
  59. ; NO_CODE_PAGE_CHECK equ 0100h
  60. ; IO_MODE_ID equ 00000010b
  61.