NPSSetCustomText


VOID NPSSetCustomText (
  LPTSTR lpCustomErrorText
  );

lpCustomErrorText

Network specific string describing the error. This field must contain a description of the error, otherwise the request will fail, in which case the standard error message is used.

There is no return value.

To return net specific text with a standard Windows error code:


// setup Error and lpErrorString to be the error to be reported
NPSSetCustomText(lpErrorString);
return(Error);