Microsoft KB Archive/193994

{|
 * width="100%"|

BUG: NetBIOS NCBRESET Bug on Windows 95 and 98

 * }

Q193994

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), included with:
 * Microsoft Windows 95
 * Microsoft Windows 98

-

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.

Additional query words:

Keywords : kbnetwork kbAPI kbNetBIOS kbSDKPlatform kbOSWin95bug kbOSWin98bug kbGrpDSNet

Issue type : kbbug

Technology : kbAudDeveloper kbWin32sSearch kbWin32API