Microsoft KB Archive/124879

{|
 * width="100%"|

PRB: Error 1 (NRC_BUFLEN) During NetBIOS Send Call

 * }

Q124879

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), versions 3.1, 3.5, 3.51, 4.0

-

SYMPTOMS
When making a NetBIOS Send call, the call with fail with error code 1 (NRC_BUFLEN). This error code indicates that the buffer length is invalid.

CAUSE
NRC_BUFLEN will be returned if the buffer length specified in the NetBIOS Control Block (NCB) is incorrect. Less obvious is the fact that this error will also be returned if the buffer pointed to by the NCB is protected from write operations.

RESOLUTION
Although the NetBIOS code does not write to the buffer supplied in the NCB, write access is required. You can solve the problem by changing the protection on your buffer to include write access.

Additional query words:

Keywords : kberrmsg kbnetwork kbAPI kbNetBIOS kbOSWinNT310 kbOSWinNT350 kbOSWinNT351 kbSDKPlatform kbOSWin95 kbGrpDSNet

Issue type : kbprb

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch kbWin32SDK400 kbWin32SDK310 kbWin32SDK350 kbWin32SDK351