ID Number: Q70883
2.00b
MS-DOS
buglist2.00b
Summary:
PROBLEM ID: DLM9103008
SYMPTOMS
NetBiosSubmit() returns the following invalid NetBIOS errors: 261,
277, and 281.
CAUSE
Microsoft has confirmed this to be a problem in DOS LAN Manager
version 2.00b.
RESOLUTION
After checking for NERR_* return codes, mask the return codes with
0x00FF. For example, the following sample code demonstrates how to
work around this problem:
err = NetBiosSubmit(handle, opt, ncbptr);
if ( err == NERR_Success )
{
"no error"
}
else if ( err > NERR_BASE && err <= NERR_MAX )
{
"lanman error"
}
else if ( (err & 0x00FF) == ncbptr->ncb_retcode )
{
"ASSUME NetBios error"
}
else
{
"sys error or bogus return"
switch (err)
{
case "documented OS2 errors"
...
default "assume bogus or undocumented ret codes"
}
}