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.

84 lines
1.9 KiB

  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. // Volume label
  34. //
  35. #define MSFS_VOLUME_LABEL L"Mailslot"
  36. //
  37. // The default read timeout. This is used if no timeout is specified
  38. // when the mailslot is created.
  39. //
  40. #define DEFAULT_READ_TIMEOUT { -1, -1 }
  41. //
  42. // The number of parameter bytes returned by a peek call.
  43. //
  44. #define PEEK_OUTPUT_PARAMETER_BYTES \
  45. ((ULONG)FIELD_OFFSET(FILE_MAILSLOT_PEEK_BUFFER, Data[0]))
  46. //
  47. // The number of parameter bytes returned by a mailslot read call.
  48. //
  49. #define READ_OUTPUT_PARAMETER_BYTES \
  50. ((ULONG)FIELD_OFFSET(FILE_MAILSLOT_READ_BUFFER, Data[0]))
  51. //
  52. // Access to the block header information.
  53. //
  54. #define NodeType(Ptr) (*((PNODE_TYPE_CODE)(Ptr)))
  55. #endif // _MSCONST_