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.

99 lines
3.5 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. smbpoolt.h
  5. Abstract:
  6. The pool tag definitions for SMB mini redirector
  7. Author:
  8. Balan Sethu Raman (SethuR) - Created 2-March-95
  9. Revision History:
  10. This file contains all the pool tag definitions related to the SMB mini redirector.
  11. The mechanism is intended to balance the number of pool tags to be used with the
  12. total number of tags available in the system.
  13. By specifying special flags the total number of tags consumed by the mini redirector
  14. can be controlled. For most builds the tags should be aliased such that about
  15. 6 tags are consumed by the mini redirector. In special builds the aliasing of tags
  16. will be suppressed, thereby consuming more tags to track down memory leaks easily.
  17. The following are the major tags ....
  18. 1) SmCe -- the Smb Mini Redirector connection engine.
  19. 2) SmOe -- the Smb Mini redirector ordinary exchange related allocation.
  20. 3) SmAd -- the Smb Mini redirector ADMIN exchange/session setup/tree connect etc.
  21. 4) SmRw -- the Smb mini redirector read/write paths
  22. 5) SmTr -- the Transact exchange related allocations
  23. 6) SmMs -- the miscellanous category.
  24. 7) SmRb -- the remote boot category.
  25. --*/
  26. #ifndef _SMBPOOLT_H_
  27. #define _SMBPOOLT_H_
  28. #define MRXSMB_CE_POOLTAG ('eCmS')
  29. #define MRXSMB_MM_POOLTAG ('mMmS')
  30. #define MRXSMB_ADMIN_POOLTAG ('dAmS')
  31. #define MRXSMB_RW_POOLTAG ('wRmS')
  32. #define MRXSMB_XACT_POOLTAG ('rTmS')
  33. #define MRXSMB_MISC_POOLTAG ('sMmS')
  34. #define MRXSMB_TRANSPORT_POOLTAG ('pTmS')
  35. #define MRXSMB_REMOTEBOOT_POOLTAG ('bRmS')
  36. #define MRXSMB_SECSIG_POOLTAG ('SSmS')
  37. extern ULONG MRxSmbExplodePoolTags;
  38. #define MRXSMB_DEFINE_POOLTAG(ExplodedPoolTag,DefaultPoolTag) \
  39. ((MRxSmbExplodePoolTags == 0) ? (DefaultPoolTag) : (ExplodedPoolTag))
  40. #define MRXSMB_FSCTL_POOLTAG MRXSMB_DEFINE_POOLTAG('cFmS',MRXSMB_MISC_POOLTAG)
  41. #define MRXSMB_DIRCTL_POOLTAG MRXSMB_DEFINE_POOLTAG('cDmS',MRXSMB_MISC_POOLTAG)
  42. #define MRXSMB_PIPEINFO_POOLTAG MRXSMB_DEFINE_POOLTAG('iPmS',MRXSMB_MISC_POOLTAG)
  43. #define MRXSMB_DEFROPEN_POOLTAG MRXSMB_DEFINE_POOLTAG('ODmS',MRXSMB_MISC_POOLTAG)
  44. #define MRXSMB_QPINFO_POOLTAG MRXSMB_DEFINE_POOLTAG('PQmS',MRXSMB_MISC_POOLTAG)
  45. #define MRXSMB_RXCONTEXT_POOLTAG MRXSMB_DEFINE_POOLTAG('xRmS',MRXSMB_MISC_POOLTAG)
  46. #define MRXSMB_VNETROOT_POOLTAG MRXSMB_DEFINE_POOLTAG('rVmS',MRXSMB_CE_POOLTAG)
  47. #define MRXSMB_SERVER_POOLTAG MRXSMB_DEFINE_POOLTAG('rSmS',MRXSMB_CE_POOLTAG)
  48. #define MRXSMB_SESSION_POOLTAG MRXSMB_DEFINE_POOLTAG('eSmS',MRXSMB_CE_POOLTAG)
  49. #define MRXSMB_NETROOT_POOLTAG MRXSMB_DEFINE_POOLTAG('rNmS',MRXSMB_CE_POOLTAG)
  50. #define MRXSMB_MIDATLAS_POOLTAG MRXSMB_DEFINE_POOLTAG('aMmS', MRXSMB_CE_POOLTAG)
  51. #define MRXSMB_MAILSLOT_POOLTAG MRXSMB_DEFINE_POOLTAG('tMmS', MRXSMB_CE_POOLTAG)
  52. #define MRXSMB_VC_POOLTAG MRXSMB_DEFINE_POOLTAG('cVmS',MRXSMB_CE_POOLTAG)
  53. #define MRXSMB_ECHO_POOLTAG MRXSMB_DEFINE_POOLTAG('cEmS',MRXSMB_ADMIN_POOLTAG)
  54. #define MRXSMB_KERBEROS_POOLTAG MRXSMB_DEFINE_POOLTAG('sKmS',MRXSMB_ADMIN_POOLTAG)
  55. // NodeType Codes
  56. #define SMB_EXCHANGE_CATEGORY (0xed)
  57. #define SMB_CONNECTION_ENGINE_DB_CATEGORY (0xea)
  58. #define SMB_SERVER_TRANSPORT_CATEGORY (0xeb)
  59. #define SMB_EXCHANGE_NTC(x) \
  60. ((SMB_EXCHANGE_CATEGORY << 8) | (x))
  61. #define SMB_CONNECTION_ENGINE_NTC(x) \
  62. ((SMB_CONNECTION_ENGINE_DB_CATEGORY << 8) | (x))
  63. #define SMB_NTC_STUFFERSTATE 0xed80
  64. #endif _SMBPOOLT_H_