Source code of Windows XP (NT5)
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.

72 lines
1.7 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. nb30p.h
  5. Abstract:
  6. Private include file for the NB (NetBIOS) component of the NTOS project.
  7. Author:
  8. Colin Watson (ColinW) 09-Dec-1991
  9. Revision History:
  10. --*/
  11. #ifndef _NB30P_
  12. #define _NB30P_
  13. #define NB_DEVICE_NAME L"\\Device\\Netbios" // name of our driver.
  14. #define NB_REGISTRY_STRING L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Netbios"
  15. //
  16. // private IOCTLs used by the Netbios routine in the dll to communicate with
  17. // \Device\Netbios
  18. //
  19. #define IOCTL_NB_BASE FILE_DEVICE_TRANSPORT
  20. #define _NB_CONTROL_CODE(request, method) \
  21. CTL_CODE(IOCTL_NB_BASE, request, method, FILE_ANY_ACCESS)
  22. #define IOCTL_NB_NCB _NB_CONTROL_CODE(20, METHOD_NEITHER)
  23. #define IOCTL_NB_REGISTER_STOP _NB_CONTROL_CODE(21, METHOD_NEITHER)
  24. #define IOCTL_NB_STOP _NB_CONTROL_CODE(22, METHOD_NEITHER)
  25. #define IOCTL_NB_REGISTER_RESET _NB_CONTROL_CODE(23, METHOD_BUFFERED)
  26. //
  27. // MessageId: STATUS_HANGUP_REQUIRED
  28. //
  29. // MessageText:
  30. //
  31. // Warning error for the Netbios driver to the Netbios dll. When receiving this
  32. // status on an NCB completion, the dll will hangup the connection causing the
  33. // connection block to be deleted. This status will never be returned to a user
  34. // application.
  35. //
  36. #define STATUS_HANGUP_REQUIRED ((NTSTATUS)0x80010001L)
  37. //
  38. // Private extension for XNS to support vtp.exe
  39. //
  40. #define NCALLNIU 0x74 /* UB special */
  41. //
  42. // Private extension to support AsyBEUI
  43. //
  44. #define NCBQUICKADDNAME 0x75
  45. #define NCBQUICKADDGRNAME 0x76
  46. // Values for transport_id in ACTION_HEADER
  47. #define MS_ABF "MABF"
  48. #define MS_XNS "MXNS"
  49. #endif // _NB30P_