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.

54 lines
1.4 KiB

  1. /*++ BUILD Version: 0000 // Increment this if a change has global effects
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. NodeType.h
  5. Abstract:
  6. This module defines all of the node type codes used in this development
  7. shell. Every major data structure in the file system is assigned a node
  8. type code that is. This code is the first CSHORT in the structure and is
  9. followed by a CSHORT containing the size, in bytes, of the structure.
  10. Author:
  11. Brian Andrew [BrianAn] 20-June-1991
  12. Revision History:
  13. --*/
  14. #ifndef _NODETYPE_
  15. #define _NODETYPE_
  16. typedef CSHORT NODE_TYPE_CODE;
  17. typedef NODE_TYPE_CODE *PNODE_TYPE_CODE;
  18. #define NTC_UNDEFINED ((NODE_TYPE_CODE)0x0000)
  19. #define LFS_NTC_LEB ((NODE_TYPE_CODE)0x800)
  20. #define LFS_NTC_LCH ((NODE_TYPE_CODE)0x801)
  21. #define LFS_NTC_LBCB ((NODE_TYPE_CODE)0x802)
  22. #define LFS_NTC_LFCB ((NODE_TYPE_CODE)0x803)
  23. #define LFS_NTC_DATA ((NODE_TYPE_CODE)0x804)
  24. typedef CSHORT NODE_BYTE_SIZE;
  25. //
  26. // So all records start with
  27. //
  28. // typedef struct _RECORD_NAME {
  29. // NODE_TYPE_CODE NodeTypeCode;
  30. // NODE_BYTE_SIZE NodeByteSize;
  31. //
  32. // } RECORD_NAME;
  33. // typedef RECORD_NAME *PRECORD_NAME;
  34. //
  35. #define NodeType(Ptr) (*((PNODE_TYPE_CODE)(Ptr)))
  36. #endif // _NODETYPE_