Knowledge Base

BUG: NetBIOS NCBRESET Bug on Windows 95 and 98

Article ID: 193994

Article Last Modified on 11/21/2006


APPLIES TO


This article was previously published under Q193994

SYMPTOMS

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.

RESOLUTION

NetBIOS applications can avoid this problem by resetting all LANAs before adding names to a specific LANA.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

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.

Keywords: kbapi kbbug kbnetbios kbnetwork KB193994