BUG: NetBIOS NCBRESET Bug on Windows 95 and 98 (193994)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • Microsoft Windows 95
    • Microsoft Windows 98

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.

Modification Type:MinorLast Reviewed:12/16/2004
Keywords:kbAPI kbBug kbNetBIOS kbnetwork KB193994