Unit VSSMisc |
Classes |
Functions |
FormatLastError - Renamed from Misc.
Types |
Constants |
Variables |
Functions |
FUNCTION: FormatLastError(DWORD, LPSTR, DWORD) // PURPOSE: Pretty print a system error to a string. // PARAMETERS: dwLastError - Actual error code to decipher. szOutputBuffer - String buffer to pretty print to. dwSizeofOutputBuffer - Size of String buffer. // RETURN VALUE: Returns the buffer printed to. // COMMENTS: If szOutputBuffer isn't big enough to hold the whole string, then the string gets truncated to fit the buffer. // If szOutputBuffer == NULL, then dwSizeofOutputBuffer is ignored, a buffer 'big enough' is LocalAlloc()d and a pointer to it is returned. However, its *very* important that this pointer be LocalFree()d by the calling application. // //
Types |
Constants |
Variables |