Microsoft KB Archive/66565

= Using the NCB Adaptor Status Call to Determine Free NCBs =

Article ID: 66565

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft LAN Manager 2.0 Standard Edition

-



This article was previously published under Q66565



SUMMARY
Question:

I used the NetBIOS Adaptor Status call to determine the number of free NCBs (network control blocks) on my system. I then attempted to submit that many NCBs. However, I began to receive NetBIOS error 9's (out of NCBs) before I reached the limit returned by the Adaptor Status call. Why are these errors occurring?

Response:

The NETWKSTA.SYS driver needs to keep track of any user NCB that is in progress. This places an upper limit on the number of NCBs an application may submit. Currently, this number is based upon the number of NCBs the driver can support, less the number that the redirector requires to be a workstation (that is, the LANMAN.INI [WKSTA] MAXCMDS keyword). However, this is subject to change because redirector should never allow an application to consume all remaining NCBs.

Keywords: KB66565

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.