pBuf (PCHAR) - output
If the message is too long to fit in the caller's buffer, then as much of the message text as possible is returned, with the appropriate error return code.