Unit Nb |
Classes |
Functions |
Netbios -
NetbiosCmd - Exposed functions
---------------------------------} { execute a Windows Netbios Call } {---------------------------------
Types |
PAction_Header
PAdpStat
PFind_Name_Buffer
PFind_Name_Header
PLana_Enum
PNameInfo
PNCB
PSession_Buffer
PSession_Header
TAction_Header
TAdpStat
TFind_Name_Buffer
TFind_Name_Header
TLANA_ENUM
TMacAddress
TNameInfo
TNBName
TNCB
TNCBPostProc
TSession_Buffer
TSession_Header
Constants |
ALL_TRANSPORTS
CALL_PENDING
DEREGISTERED
DUPLICATE
DUPLICATE_DEREG
GROUP_NAME
HANGUP_COMPLETE
HANGUP_PENDING
LISTEN_OUTSTANDING
MAXLANAS
MS_NBF
NAME_FLAGS_MASK
NBNAMESIZE
NCB_ACTION
NCB_ADDGRPNAME
NCB_ADDNAME
NCB_ADPSTAT
NCB_ASYNC
NCB_CALL
NCB_CANCEL
NCB_CHAINSEND
NCB_CHAINSENDNA
NCB_DELNAME
NCB_DGRECV
NCB_DGREVCBC
NCB_DGSEND
NCB_DGSENDBC
NCB_ENUM
NCB_FINDNAME
NCB_HANGUP
NCB_LANSTALERT
NCB_LISTEN
NCB_RECV
NCB_RECVANY
NCB_RESET
NCB_SEND
NCB_SENDNA
NCB_SSTAT
NCB_TRACE
NCB_UNLINK
NRC_ACTSES
NRC_BADDR
NRC_BRIDGE
NRC_BUFLEN
NRC_CANCEL
NRC_CANOCCR
NRC_CMDCAN
NRC_CMDTMO
NRC_DUPENV
NRC_DUPNAME
NRC_ENVNOTDEF
NRC_GOODRET
NRC_IFBUSY
NRC_ILLCMD
NRC_ILLNN
NRC_INCOMP
NRC_INUSE
NRC_INVADDRESS
NRC_INVDDID
NRC_LOCKFAIL
NRC_LOCTFUL
NRC_MAXAPPS
NRC_NAMCONF
NRC_NAMERR
NRC_NAMTFUL
NRC_NOCALL
NRC_NORES
NRC_NORESOURCES
NRC_NOSAPS
NRC_NOWILD
NRC_OPENERR
NRC_OSRESNOTAV
NRC_PENDING
NRC_REMTFUL
NRC_SABORT
NRC_SCLOSED
NRC_SNUMOUT
NRC_SYSTEM
NRC_TOOMANY
REGISTERED
REGISTERING
SESSION_ABORTED
SESSION_ESTABLISHED
UNIQUE_NAME
Variables |
Functions |
---------------------------------} { execute a Windows Netbios Call } {---------------------------------
Types |
PAction_Header = ^TAction_HeaderStructure provided with NCBACTION. The purpose of NCBACTION is to provide transport specific extensions to netbios.
PAdpStat = ^TAdpStatNetbios adapter status
PFind_Name_Buffer = ^TFind_Name_Buffer
PFind_Name_Header = ^TFind_Name_HeaderStructure returned to the NCB command NCBFINDNAME is FIND_NAME_HEADER followed by an array of FIND_NAME_BUFFER structures.
PLana_Enum = ^TLana_EnumStructure returned to the NCB command NCBENUM. On a system containing lana's 0, 2 and 3, a structure with length =3, lana[0]=0, lana[1]=2 and lana[2]=3 will be returned.
PNameInfo = ^TNameInfoNetbios Name Info record
PNCB = ^TNCB
PSession_Buffer = ^TSession_Buffersession buffer
PSession_Header = ^TSession_HeaderStructure returned to the NCB command NCBSSTAT is SESSION_HEADER followed by an array of SESSION_BUFFER structures. If the NCB_NAME starts with an asterisk then an array of these structures is returned containing the status for all names. { session header
TAction_Header = record
transport_id : LongInt;
action_code : Word;
reserved : Word;
end;
TAdpStat = record
ID : TMacAddress;
VMajor : byte;
Resvd0 : byte;
AdpType : byte;
VMinor : byte;
RptTime : word;
RcvCRC : word;
RcvOth : word;
TxmCol : word;
TxmOth : word;
TxmOK : LongInt;
RcvOK : LongInt;
TxmRetr : word;
NoRcvBuf : word;
T1_tmo : word;
Ti_tmo : word;
Resvd1 : LongInt;
Free_Ncbs : word;
Cfg_Ncbs : word;
max_Ncbs : word;
NoTxmBuf : word;
MaxDGSize : word;
Pend_Ses : word;
Cfg_Ses : word;
Max_Ses : word;
Max_SPSz : word;
nNames : word;
Names : array[0..15] of TnameInfo;
end;
TFind_Name_Buffer = record
length : byte;
access_control : byte;
frame_control : byte;
destination_addr : TMacAddress;
source_addr : TMacAddress;
routing_info : array[0..17] of byte;
end;
TFind_Name_Header = record
node_count : word;
reserved : byte;
unique_group : byte;
end;
TLANA_ENUM = record
length : byte;
lana : array[0..(MAXLANAS - 1)] of byte;
end;
TMacAddress = array[0..5] of byte;MAC address
TNameInfo = record
Name : TNBName;
NameNum : byte;
NameSt : byte;
end;
TNBName = array[0..(NBNAMESIZE - 1)] of byte;Netbios Name
TNCB = record
Command : byte;
RetCode : byte;
LSN : byte;
Num : byte;
Buf : ^byte;
Length : word;
CallName : TNBName;
Name : TNBName;
RTO : byte;
STO : byte;
PostPrc : TNCBPostProc;
Lana_Num : byte;
Cmd_Cplt : byte;
Reserved : array[0..9] of byte;
Event : THandle;
end;
TNCBPostProc = procedure(P: PNCB)Netbios Control Block } {$IFDEF WIN32
TSession_Buffer = record
lsn : byte;
state : byte;
local_name : TNBName;
remote_name : TNBName;
rcvs_outstanding : byte;
sends_outstanding : byte;
end;
TSession_Header = record
sess_name : byte;
num_sess : byte;
rcv_dg_outstanding : byte;
rcv_any_outstanding : byte;
end;
Constants |
Variables |