Previous | Next |
The GetLogFileName method returns the full path to the current log file.
Syntax
HRESULT GetLogFileName(
LPSTR pszFilename,
UINT nMaxChars
);
Parameters
pszFilename
[out] Pointer to a buffer to receive the log file name.
nMaxChars
[in] Specifies the size of the pszFilename buffer. This is the maximum number of characters that can be placed in the buffer, including the terminating NULL character.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Description |
E_INVALIDARG | A parameter is invalid or is a NULL pointer. |
E_FAIL | The buffer is too small. |
See Also
Previous | Next |