sn: byte;
state: byte;
local_name: TNBName;
remote_name: TNBName;
rcvs_outstanding: byte;
sends_outstanding: byte;
end;
{
Structure 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=2 and lana=3 will be returned.
}
PLana_Enum = ^TLana_Enum;
TLANA_ENUM = packed record
length: byte; { Number of valid entries in lana }
lana: array[0..(MAXLANAS - 1)] of byte;
end;
{
Structure returned to the NCB command NCBFINDNAME is FIND_NAME_HEAD
ER followed
by an array of FIND_NAME_BUFFER structures.
}
PFind_Name_Header = ^TFind_Name_Header;
TFind_Name_Header = packed record
node_count: word;
reserved: byte;
unique_group: byte;
end;
PFind_Name_Buffer = ^TFind_Name_Buffer;
TFind_Name_Buffer = packed record
length: byte;
access_control: byte;
frame_control: byte;
destination_addr:TMacAddress;
source_addr: TMacAddress;
routing_info: array[0..17] of byte;
end;
{
Structure provided with NCBACTION. The purpose of NCBACTION is to p
rovide
transport specific extensions to netbios.
}
PAction_Header = ^TAction_Header;
TAction_Header = packed record
transport_id: LongInt;
action_code: Word;
reserved: Word;
end;
{$IFDEF WIN32}
function Netbios(P: PNCB): Char; stdcall;
{$ENDIF}
{ Exposed functions }
function NetbiosCmd(var NCB: TNCB): Word;
implementation
{$IFDEF WIN32}
function Netbios; external ''netapi32.dll'' name ''Netbios'';
{$ENDIF}
{---------------------------------}
{ execute a Windows Netbios Call }
{---------------------------