Module nb30

Types

PNCB* = ptr TNCB
TNCBPostProc* = proc (P: PNCB) {.stdcall.}
TNCB* {.final.} = object 
  ncb_command*: Char
  ncb_retcode*: Char
  ncb_lsn*: Char
  ncb_num*: Char
  ncb_buffer*: cstring
  ncb_length*: int16
  ncb_callname*: array[0 .. NCBNAMSZ - 1, char]
  ncb_name*: array[0 .. NCBNAMSZ - 1, char]
  ncb_rto*: Char
  ncb_sto*: Char
  ncb_post*: TNCBPostProc
  ncb_lana_num*: Char
  ncb_cmd_cplt*: Char
  ncb_reserve*: array[0 .. 9, Char]
  ncb_event*: THandle
PAdapterStatus* = ptr TAdapterStatus
TAdapterStatus* {.final.} = object 
  adapter_address*: array[0 .. 5, Char]
  rev_major*: Char
  reserved0*: Char
  adapter_type*: Char
  rev_minor*: Char
  duration*: int16
  frmr_recv*: int16
  frmr_xmit*: int16
  iframe_recv_err*: int16
  xmit_aborts*: int16
  xmit_success*: DWORD
  recv_success*: DWORD
  iframe_xmit_err*: int16
  recv_buff_unavail*: int16
  t1_timeouts*: int16
  ti_timeouts*: int16
  reserved1*: DWORD
  free_ncbs*: int16
  max_cfg_ncbs*: int16
  max_ncbs*: int16
  xmit_buf_unavail*: int16
  max_dgram_size*: int16
  pending_sess*: int16
  max_cfg_sess*: int16
  max_sess*: int16
  max_sess_pkt_size*: int16
  name_count*: int16
PNameBuffer* = ptr TNameBuffer
TNameBuffer* {.final.} = object 
  name*: array[0 .. NCBNAMSZ - 1, Char]
  name_num*: Char
  name_flags*: Char
PSessionHeader* = ptr TSessionHeader
TSessionHeader* {.final.} = object 
  sess_name*: Char
  num_sess*: Char
  rcv_dg_outstanding*: Char
  rcv_any_outstanding*: Char
PSessionBuffer* = ptr TSessionBuffer
TSessionBuffer* {.final.} = object 
  lsn*: Char
  state*: Char
  local_name*: array[0 .. NCBNAMSZ - 1, Char]
  remote_name*: array[0 .. NCBNAMSZ - 1, Char]
  rcvs_outstanding*: Char
  sends_outstanding*: Char
PLanaEnum* = ptr TLanaEnum
TLanaEnum* {.final.} = object 
  len*: Char
  lana*: array[0 .. MAX_LANA, Char]
PFindNameHeader* = ptr TFindNameHeader
TFindNameHeader* {.final.} = object 
  node_count*: int16
  reserved*: Char
  unique_group*: Char
PFindNameBuffer* = ptr TFindNameBuffer
TFindNameBuffer* {.final.} = object 
  len*: Char
  access_control*: Char
  frame_control*: Char
  destination_addr*: array[0 .. 5, Char]
  source_addr*: array[0 .. 5, Char]
  routing_info*: array[0 .. 17, Char]
PActionHeader* = ptr TActionHeader
TActionHeader* {.final.} = object 
  transport_id*: int32
  action_code*: int16
  reserved*: int16

Consts

NCBNAMSZ* = 16
MAX_LANA* = 254
NAME_FLAGS_MASK* = 0x00000087
GROUP_NAME* = 0x00000080
UNIQUE_NAME* = 0x00000000
REGISTERING* = 0x00000000
REGISTERED* = 0x00000004
DEREGISTERED* = 0x00000005
DUPLICATE* = 0x00000006
DUPLICATE_DEREG* = 0x00000007
LISTEN_OUTSTANDING* = 0x00000001
CALL_PENDING* = 0x00000002
SESSION_ESTABLISHED* = 0x00000003
HANGUP_PENDING* = 0x00000004
HANGUP_COMPLETE* = 0x00000005
SESSION_ABORTED* = 0x00000006
ALL_TRANSPORTS* = "M\0\0\0"
MS_NBF* = "MNBF"
NCBCALL* = 0x00000010
NCBLISTEN* = 0x00000011
NCBHANGUP* = 0x00000012
NCBSEND* = 0x00000014
NCBRECV* = 0x00000015
NCBRECVANY* = 0x00000016
NCBCHAINSEND* = 0x00000017
NCBDGSEND* = 0x00000020
NCBDGRECV* = 0x00000021
NCBDGSENDBC* = 0x00000022
NCBDGRECVBC* = 0x00000023
NCBADDNAME* = 0x00000030
NCBDELNAME* = 0x00000031
NCBRESET* = 0x00000032
NCBASTAT* = 0x00000033
NCBSSTAT* = 0x00000034
NCBCANCEL* = 0x00000035
NCBADDGRNAME* = 0x00000036
NCBENUM* = 0x00000037
NCBUNLINK* = 0x00000070
NCBSENDNA* = 0x00000071
NCBCHAINSENDNA* = 0x00000072
NCBLANSTALERT* = 0x00000073
NCBACTION* = 0x00000077
NCBFINDNAME* = 0x00000078
NCBTRACE* = 0x00000079
ASYNCH* = 0x00000080
NRC_GOODRET* = 0x00000000
NRC_BUFLEN* = 0x00000001
NRC_ILLCMD* = 0x00000003
NRC_CMDTMO* = 0x00000005
NRC_INCOMP* = 0x00000006
NRC_BADDR* = 0x00000007
NRC_SNUMOUT* = 0x00000008
NRC_NORES* = 0x00000009
NRC_SCLOSED* = 0x0000000A
NRC_CMDCAN* = 0x0000000B
NRC_DUPNAME* = 0x0000000D
NRC_NAMTFUL* = 0x0000000E
NRC_ACTSES* = 0x0000000F
NRC_LOCTFUL* = 0x00000011
NRC_REMTFUL* = 0x00000012
NRC_ILLNN* = 0x00000013
NRC_NOCALL* = 0x00000014
NRC_NOWILD* = 0x00000015
NRC_INUSE* = 0x00000016
NRC_NAMERR* = 0x00000017
NRC_SABORT* = 0x00000018
NRC_NAMCONF* = 0x00000019
NRC_IFBUSY* = 0x00000021
NRC_TOOMANY* = 0x00000022
NRC_BRIDGE* = 0x00000023
NRC_CANOCCR* = 0x00000024
NRC_CANCEL* = 0x00000026
NRC_DUPENV* = 0x00000030
NRC_ENVNOTDEF* = 0x00000034
NRC_OSRESNOTAV* = 0x00000035
NRC_MAXAPPS* = 0x00000036
NRC_NOSAPS* = 0x00000037
NRC_NORESOURCES* = 0x00000038
NRC_INVADDRESS* = 0x00000039
NRC_INVDDID* = 0x0000003B
NRC_LOCKFAIL* = 0x0000003C
NRC_OPENERR* = 0x0000003F
NRC_SYSTEM* = 0x00000040
NRC_PENDING* = 0x000000FF

Procs

proc Netbios*(P: PNCB): Char {.stdcall, dynlib: "netapi32.dll", 
                               importc: "Netbios".}
Generated: 2014-03-11 21:26:34 UTC