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
2.4 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. nbconst.h
  5. Abstract:
  6. Private include file for the NB (NetBIOS) component of the NTOS project.
  7. Author:
  8. Colin Watson (ColinW) 13-Mar-1991
  9. Revision History:
  10. --*/
  11. #ifndef _NBCONST_
  12. #define _NBCONST_
  13. //
  14. // MAJOR PROTOCOL IDENTIFIERS THAT CHARACTERIZE THIS DRIVER.
  15. //
  16. #define MAXIMUM_LANA 254
  17. #define MAXIMUM_CONNECTION 254
  18. #define MAXIMUM_ADDRESS 255
  19. //
  20. // Default number of I/O stack locations in a Netbios Irp. This value
  21. // is used if the Netbios\Parameters\IrpStackSize registry value is
  22. // missing.
  23. //
  24. #define NB_DEFAULT_IO_STACKSIZE 4
  25. //
  26. // private ncb_command values used to add special names. Applications
  27. // cannot use these. Used in file.c and address.c
  28. //
  29. #define NCBADDRESERVED 0x7f
  30. #define NCBADDBROADCAST 0x7e
  31. //
  32. // Signature values for the major netbios driver structures.
  33. //
  34. #define NB_SIGNATURE_BASE 0xB1050000
  35. #define AB_SIGNATURE (NB_SIGNATURE_BASE + 0x000000ab)
  36. #define CB_SIGNATURE (NB_SIGNATURE_BASE + 0x000000cb)
  37. #define FCB_SIGNATURE (NB_SIGNATURE_BASE + 0x00000001)
  38. #define LANA_INFO_SIGNATURE (NB_SIGNATURE_BASE + 0x00000002)
  39. //
  40. // PLANA status values
  41. //
  42. #define NB_INITIALIZING 0x00000001
  43. #define NB_INITIALIZED 0x00000002
  44. #define NB_DELETING 0x00000003
  45. #define NB_ABANDONED 0x00000004
  46. //
  47. // NT uses a system time measured in 100 nanosecnd intervals. define convenient
  48. // constants for setting the timer.
  49. //
  50. #define MICROSECONDS 10
  51. #define MILLISECONDS 10000 // MICROSECONDS*1000
  52. #define SECONDS 10000000 // MILLISECONDS*1000
  53. //
  54. // Names used for registry access
  55. //
  56. #define REGISTRY_LINKAGE L"Linkage"
  57. #define REGISTRY_PARAMETERS L"Parameters"
  58. #define REGISTRY_BIND L"Bind"
  59. #define REGISTRY_LANA_MAP L"LanaMap"
  60. #define REGISTRY_MAX_LANA L"MaxLana"
  61. #define REGISTRY_IRP_STACK_SIZE L"IrpStackSize"
  62. #define NETBIOS L"Netbios"
  63. //
  64. // prefix for NBF deive names
  65. //
  66. #define NBF_DEVICE_NAME_PREFIX L"\\DEVICE\\NBF_"
  67. #endif // _NBCONST_