PNRP NSP Error Codes

If the Namespace Provider (NSP) function returns a SOCKET_ERROR, WSAGetLastError must be used to obtain more error information. The PNRP NSP returns the following error codes:

SymbolicCodeDescription
WSA_E_CANCELLEDAn operation is canceled.
WSA_E_NO_MOREThe results of a resolved request are not ready. This may not be an error.
WSA_IO_PENDINGAn operation is not complete.
WSA_NOT_ENOUGH_MEMORYThere is not enough memory to complete a specified action.
WSA_OPERATION_ABORTEDAn operation is canceled.
WSA_PNRP_CLOUD_DISABLEDA specified cloud name is disabled.
WSA_PNRP_CLOUD_NOT_FOUNDA specified cloud name is not available.
WSA_PNRP_CLOUD_IS_SEARCH_ONLYAn attempt has been made to register a name in a cloud that has been configured to be resolve only.
WSA_PNRP_CLIENT_INVALID_COMPARTMENT_IDUsing PNRP in a compartment outside of the default. PNRP will only work in the default compartment.
WSA_PNRP_INVALID_IDENTITYA specified identity cannot be accessed.
WSA_PNRP_TOO_MUCH_LOADA peer name cannot be created because the computer does not have the resources to process the request.
WSAEFAULTA operation is not allowed in the current state.
WSAEINVALAn invalid parameter or combination of parameters is specified.
WSAENETUNREACHA connection to the network is lost.
WSAENOTIMPLEMENTEDA specified functionality is not implemented by PNRP.
WSAEOPNOTSUPPA specified functionality is not supported by PNRP.
WSAEWOULDBLOCKAn operation is not complete.
WSASERVICE_NOT_FOUNDA specified provider, namespace, or service ID are not supported.
WSASYSNOTREADYThe service is not started.
19 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.