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.

106 lines
2.9 KiB

  1. ; Copyright (c) Microsoft Corporation 1989-1991. All Rights Reserved.
  2. ;***********************************************************************
  3. ;
  4. ; NETBIOS.INC - NetBIOS Definitions for 286 DOS Extender
  5. ;
  6. ;-----------------------------------------------------------------------
  7. ;
  8. ; 04/18/89 jimmat Original version.
  9. ;
  10. ;***********************************************************************
  11. ; NetBIOS return codes
  12. RC_Good EQU 000h
  13. RC_Invalid_Cmd EQU 003h
  14. RC_Max_Cmd EQU 022h
  15. RC_In_Progress EQU 024h
  16. RC_Pending EQU 0FFh
  17. RC_Resources EQU 035h ; OS/2 (!) Required OS Resources Exhausted
  18. ; Some NetBIOS command codes
  19. SessCall EQU 10h ; Call command
  20. SessListen EQU 11h ; Listen command
  21. HangUp EQU 12h ; Hang up command
  22. Send EQU 14h ; Send command
  23. Recv EQU 15h ; Recv command
  24. RecvAny EQU 16h ; Recv any command
  25. ChainSend EQU 17h ; Chain send command
  26. SendGram EQU 20h ; Send datagram
  27. RecvGram EQU 21h ; Recv datagram
  28. SendBroad EQU 22h ; Send broadcast datagram
  29. RecvBroad EQU 23h ; Recv broadcast datagram
  30. AddName EQU 30h ; Add name command
  31. DelName EQU 31h ; Delete name command
  32. Reset EQU 32h ; Reset command
  33. AdptStat EQU 33h ; Adapter status command
  34. SessStat EQU 34h ; Session status command
  35. Cancel EQU 35h ; Cancel command
  36. AddGName EQU 36h ; Add group name command
  37. Unlink EQU 70h ; Unlink command
  38. Install EQU 7Fh ; Install check (?)
  39. NoWait EQU 80h ; APPLIES TO MOST COMMANDS (High bit)
  40. ; some UB netbios command codes
  41. UBNB_Register EQU 72h
  42. UBNB_SendNmc EQU 73h
  43. UBNB_Callniu EQU 74h
  44. UBNB_Calladdr EQU 75h
  45. UBNB_Listenaddr EQU 76h
  46. UBNB_SendPkt EQU 77h
  47. UBNB_RcvPkt EQU 78h
  48. UBNB_SendAttn EQU 79h
  49. UBNB_RcvAttn EQU 7Ah
  50. UBNB_Listenniu EQU 7Bh
  51. UBNB_RcvRaw EQU 7Ch
  52. UBNB_SendNmc2 EQU 7Dh
  53. ;******************************************************************************
  54. ; S T R U C T U R E S
  55. ;******************************************************************************
  56. ;
  57. ; Network Control Block structure
  58. ;
  59. NCB_Struc STRUC
  60. NCB_Command db ? ; Command
  61. NCB_RetCode db ? ; Return code
  62. NCB_LSN db ? ; Local session #
  63. NCB_Num db ? ; Name #
  64. NCB_Buffer_Off dw ? ; Buffer offset
  65. NCB_Buffer_Seg dw ? ; Buffer segment
  66. NCB_Length dw ? ; Buffer length
  67. NCB_CallName db 16 dup (?) ; Name on local or remote adapter
  68. NCB_Name db 16 dup (?) ; Name on local adapter
  69. NCB_RTO db ? ; Receive timeout
  70. NCB_STO db ? ; Send timeout
  71. NCB_Post_Off dw ? ; Post routine offset
  72. NCB_Post_Seg dw ? ; Post routine segment
  73. NCB_LanA_Num db ? ; Adapter #
  74. NCB_Cmd_Cplt db ? ; Command status field
  75. NCB_Reserved db 14 dup (?) ; Reserved
  76. NCB_Struc ENDS
  77. HCB_Flags EQU WORD PTR [-02h]
  78. HCB_Next EQU WORD PTR [-04h]
  79. HCB_PM_NCB_Seg EQU WORD PTR [-06h]
  80. HCB_PM_NCB_Off EQU WORD PTR [-08h]
  81. HCB_Handle EQU WORD PTR [-0Ah]
  82. HCB_Header_Size EQU 0Ah
  83. HCB_Size EQU SIZE NCB_Struc + HCB_Header_Size
  84. ; HCB_Flags defines
  85. HCB_DELAY EQU 001h
  86. HCB_ISSUED EQU 002h
  87. HCB_POSTED EQU 004h