Netbios的反回值的问题
ncb.ncb_command=NCBSTAT;
u=Netbios(&ncb);
(1)。Netbios的反回值是什么呀,有几种情况?
(2)。如果反回的是0,是成功,还是不成功呀!
问题点数:0、回复次数:3Top
1 楼Caps77(厉兵秣马)回复于 2004-12-03 10:13:17 得分 0
1,
NRC_GOODRET The operation succeeded.
NRC_BUFLEN An illegal buffer length was supplied.
NRC_ILLCMD An illegal command was supplied.
NRC_CMDTMO The command was timed out.
NRC_INCOMP The message was incomplete. The application is to issue another command.
NRC_BADDR The buffer address was illegal.
NRC_SNUMOUT The session number was out of range.
NRC_NORES No resource was available.
NRC_SCLOSED The session was closed.
NRC_CMDCAN The command was canceled.
NRC_DUPNAME A duplicate name existed in the local name table.
NRC_NAMTFUL The name table was full.
NRC_ACTSES The command finished; the name has active sessions and is no longer registered.
NRC_LOCTFUL The local session table was full.
NRC_REMTFUL The remote session table was full. The request to open a session was rejected.
NRC_ILLNN An illegal name number was specified.
NRC_NOCALL The system did not find the name that was called.
NRC_NOWILD Wildcards are not permitted in the ncb_name member.
NRC_INUSE The name was already in use on the remote adapter.
NRC_NAMERR The name was deleted.
NRC_SABORT The session ended abnormally.
NRC_NAMCONF A name conflict was detected.
NRC_IFBUSY The interface was busy.
NRC_TOOMANY Too many commands were outstanding; the application can retry the command later.
NRC_BRIDGE The ncb_lana_num member did not specify a valid network number.
NRC_CANOCCR The command finished while a cancel operation was occurring.
NRC_CANCEL The NCBCANCEL command was not valid; the command was not canceled.
NRC_DUPENV The name was defined by another local process.
NRC_ENVNOTDEF The environment was not defined. A reset command must be issued.
NRC_OSRESNOTAV Operating system resources were exhausted. The application can retry the command later.
NRC_MAXAPPS The maximum number of applications was exceeded.
NRC_NOSAPS No service access points (SAPs) were available for NetBIOS.
NRC_NORESOURCES The requested resources were not available.
NRC_INVADDRESS The NCB address was not valid.
This return code is not part of the IBM NetBIOS 3.0 specification and is not returned in the NCB structure. Instead, it is returned by Netbios.
NRC_INVDDID The NCB DDID was invalid.
NRC_LOCKFAIL The attempt to lock the user area failed.
NRC_OPENERR An error occurred during an open operation being performed by the device driver. This error code is not part of the NetBIOS 3.0 specification.
NRC_SYSTEM A system error occurred.
NRC_PENDING An asynchronous operation is not yet finished.
2,NRC_GOODRET表示成功 值为0Top
2 楼kingzai(stevenzhu)回复于 2004-12-03 10:15:08 得分 0
Netbios() 函数的返回值:
00h : 成功地完成,成功返回
01h : 无效的缓冲区
03h : 无效的命令
05h : 命令超时
06h : 不完整地接收消息
07h : 本地No-Ack命令失败
08h : 无效的本地会话
09h : 没有可使用的资源
0Ah : 会话已关闭
0Bh : 命令已撤消
0Dh : 本地NetBIOS命名表中名字重复
0Eh : NetBIOS命名表满
0Fh : 名字具有活动会话,现被撤消登记
11h : NetBIOS 本地会话表满了
12h : 没有挂起的Listen 命令,所有拒绝断开会话
13h : 非法名字编号
14h : 不能找到被调用名字或无回答
15h : 找不到命令,或不能把*号或00h指定ncb_name的首字节,或名字已被撤消而不能再使用
17h : 名字已被删除18h : 会话非正常结束
19h : 检测到名字冲突
1Ah : 不兼容的远程设备
21h : 接口忙
22h : 挂起的命令太多
23h : 在ncb_lana_num域中无效的编号
24h : 产生取消时,命令已完成
25h : 字节组名命令指定了保留名字
26h : 命令不能被撤消
30h : 被另一个进程定义了名字
34h : NetBIOS环境未被定义
35h : 所用的操作系统资源用尽
36h : 超出最大应用个数
37h : NetBIOS无可以使用的SAP
38h : 无可以使用的请求资源
40h : 系统错误
41h : 检测到远程适配器的热载波
42h : 检测到本地适配器的热载波
43h : 未检测到载波
4Eh : 状态位12、14、或15被置位的时间超过 1 min
4Fh : 状态位8--11中的一个或多个被置位
50h--F6h: 适配器发生故障
F7h : 隐式DIR-INITIALIZE错误
F8h : 隐式DIR-OPEN-ADAPTER 错误
F9h : IBM LAN支持程序内部错误
FAh : 适配器检查
FBh : NetBIOS 程序未被装入PC
FCh : DIR-OPEN-ADAPTER 或 DIR-OPEN-SAP失败
FDh : 不期望关闭适配器
FFh : 命令挂起状态
Top
3 楼oyljerry(【勇敢的心】→ ㊣提拉米苏√㊣)回复于 2004-12-03 12:41:43 得分 0
0 表示成功Top




