Unit VSSMisc

Classes

Functions

FormatLastError - Renamed from Misc.

Types

Constants

MAXOUTPUTSTRINGLENGTH

Variables


Functions


function FormatLastError( dwLastError: DWORD; szOutputBuffer: PChar; dwSizeofOutputBuffer: DWORD ): PChar;

Renamed from Misc.pas 6/12/1998 Paul Rice to avoid conflict with others' work.

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

MAXOUTPUTSTRINGLENGTH = 4096


Variables