Implement NetpNetbiosStatusToApiStatus.

This commit is contained in:
Juan Lang 2004-03-01 21:23:51 +00:00 committed by Alexandre Julliard
parent 5040309740
commit 93e268efbd
2 changed files with 46 additions and 1 deletions

View File

@ -77,3 +77,48 @@ NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service,
TRACE("(%p, %p, %ld, %ld, %p)\n", server, service, level, options, bufptr); TRACE("(%p, %p, %ld, %ld, %p)\n", server, service, level, options, bufptr);
return NERR_InternalError; return NERR_InternalError;
} }
DWORD WINAPI NetpNetBiosStatusToApiStatus(DWORD nrc)
{
DWORD ret;
switch (nrc)
{
case NRC_GOODRET:
ret = NO_ERROR;
break;
case NRC_NORES:
ret = NERR_NoNetworkResource;
break;
case NRC_DUPNAME:
ret = NERR_AlreadyExists;
break;
case NRC_NAMTFUL:
ret = NERR_TooManyNames;
break;
case NRC_ACTSES:
ret = NERR_DeleteLater;
break;
case NRC_REMTFUL:
ret = ERROR_REM_NOT_LIST;
break;
case NRC_NOCALL:
ret = NERR_NameNotFound;
break;
case NRC_NOWILD:
ret = ERROR_INVALID_PARAMETER;
break;
case NRC_INUSE:
ret = NERR_DuplicateName;
break;
case NRC_NAMERR:
ret = ERROR_INVALID_PARAMETER;
break;
case NRC_NAMCONF:
ret = NERR_DuplicateName;
break;
default:
ret = NERR_NetworkError;
}
return ret;
}

View File

@ -242,7 +242,7 @@
@ stub NetpNetBiosReceive @ stub NetpNetBiosReceive
@ stub NetpNetBiosReset @ stub NetpNetBiosReset
@ stub NetpNetBiosSend @ stub NetpNetBiosSend
@ stub NetpNetBiosStatusToApiStatus @ stdcall NetpNetBiosStatusToApiStatus(long)
@ stub NetpNtStatusToApiStatus @ stub NetpNtStatusToApiStatus
@ stub NetpOpenConfigData @ stub NetpOpenConfigData
@ stub NetpPackString @ stub NetpPackString