ID: Q193994
The information in this article applies to:
- Microsoft Windows 95
- Microsoft Windows 98
The NetBIOS NCBRESET command corrupts name tables on multiple LANAs for a process on the Windows 95 or Windows 98 platforms. Normally, NCBRESET should only reset a specific LANA specified in the NCB structure passed to the NetBIOS API call. For example, if you have a computer that has two or more LANAs and you add a NetBIOS name to one of them followed by a reset on the other, you will lose the NetBIOS name on the first LANA because the name table is corrupted.
NetBIOS applications can avoid this problem by resetting all LANAs before adding names to a specific LANA.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
You should avoid using code similar to the following in your NetBIOS applications:
LANA_ENUM lenum;
// Enumerate the LANAs.
for(i=0; i < lenum.length ;i++)
{
Reset(lenum.lana[i]);
AddName(lenum.lana[i], MY_NETBIOS_NAME);
}
Instead, you should first enumerate and reset each LANA. Then, you should
add names to each LANA.
Additional query words:
Keywords : kbnetwork kbAPI kbNetBIOS kbSDKPlatform kbWinOS95bug kbWinOS98bug kbGrpNet
Issue type : kbbug
Last Reviewed: October 14, 1998