PRB: Error 1 (NRC_BUFLEN) During NetBIOS Send Call

ID: Q124879

The information in this article applies to:

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 kbNTOS310 kbNTOS350 kbNTOS351 kbSDKPlatform kbWinOS95 kbGrpNet 
Issue type        : kbprb

Last Reviewed: July 31, 1998