MprAdminGetErrorString function (mprapi.h)

The MprAdminGetErrorString function returns the string associated with a router error from Mprerror.h.


DWORD MprAdminGetErrorString(
  [in]  DWORD  dwError,
  [out] LPWSTR *lplpwsErrorString


[in] dwError

Specifies the error code for a router error.

[out] lplpwsErrorString

Pointer to an LPWSTR variable that points to the text associated with the dwError code on successful return. Free this memory by calling LocalFree.

Return value

If the function succeeds, the return value is NO_ERROR.

If the function fails, the return value is one of the following error codes.

Value Meaning
The calling application does not have sufficient privileges.
The error code in dwError is unknown.


Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mprapi.h
Library Mprapi.lib
DLL Mprapi.dll

See also


Router Administration Functions

Router Management Reference