Windows NT 4.0 source code leak
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.

79 lines
1.7 KiB

4 years ago
  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. msconst.h
  5. Abstract:
  6. This module defines all of the node type codes used in this development
  7. shell.
  8. Author:
  9. Manny Weiser (mannyw) 7-Jan-1991
  10. Revision History:
  11. --*/
  12. #ifndef _MSCONST_
  13. #define _MSCONST_
  14. //
  15. // Every major data structure in the file system is assigned a node
  16. // type code. This code is the first CSHORT in the structure and is
  17. // followed by a CSHORT containing the size, in bytes, of the structure.
  18. //
  19. typedef CSHORT NODE_TYPE_CODE;
  20. typedef NODE_TYPE_CODE *PNODE_TYPE_CODE;
  21. #define NTC_UNDEFINED ((NODE_TYPE_CODE)0x0000)
  22. #define MSFS_NTC_VCB ((NODE_TYPE_CODE)0x0601)
  23. #define MSFS_NTC_ROOT_DCB ((NODE_TYPE_CODE)0x0602)
  24. #define MSFS_NTC_FCB ((NODE_TYPE_CODE)0x0604)
  25. #define MSFS_NTC_CCB ((NODE_TYPE_CODE)0x0606)
  26. #define MSFS_NTC_ROOT_DCB_CCB ((NODE_TYPE_CODE)0x0608)
  27. typedef CSHORT NODE_BYTE_SIZE;
  28. //
  29. // The name of the mailslot file system.
  30. //
  31. #define MSFS_NAME_STRING L"MSFS"
  32. //
  33. // The default read timeout. This is used if no timeout is specified
  34. // when the mailslot is created.
  35. //
  36. #define DEFAULT_READ_TIMEOUT { -1, -1 }
  37. //
  38. // The number of parameter bytes returned by a peek call.
  39. //
  40. #define PEEK_OUTPUT_PARAMETER_BYTES \
  41. ((ULONG)FIELD_OFFSET(FILE_MAILSLOT_PEEK_BUFFER, Data[0]))
  42. //
  43. // The number of parameter bytes returned by a mailslot read call.
  44. //
  45. #define READ_OUTPUT_PARAMETER_BYTES \
  46. ((ULONG)FIELD_OFFSET(FILE_MAILSLOT_READ_BUFFER, Data[0]))
  47. //
  48. // Access to the block header information.
  49. //
  50. #define NodeType(Ptr) (*((PNODE_TYPE_CODE)(Ptr)))
  51. #endif // _MSCONST_