111
Log_ReadFile ( FileName, MaxLength )
Log_ReadFile ( FileName, MaxLength )
Log_ReadFile ( FileName, MaxLength )
Log_ReadFile ( FileName, MaxLength )
Writes a string to the specified log file.
Syntax
HRESULT Log_ReadFile(
[in]BSTR FileName,
[in]long MaxLength,
[out, retval]BSTR* RetData
);
Parameters
FileName
[in] Name of the log file.
MaxLength
[in] Number of bytes to return in
RetData
.
RetData
[out, retval] The buffer to fill with the data from the log file.
Remarks
The number of bytes returned in the
RetData
buffer could be less than the requested
MaxLength
value,
depending on the number of bytes contained in the log file.
Log_ClearFile ( FileName )
Log_ClearFile ( FileName )
Log_ClearFile ( FileName )
Log_ClearFile ( FileName )
Clears the contents of the named log file.
Syntax
HRESULT Log_ClearFile(
[in]BSTR FileName,
[out, retval]VARIANT_BOOL* Success
);
Parameters
FileName
[in] Name of the log file.
Success
[out, retval] TRUE if the log file was cleared, FALSE on failure.
Log_FirstFile ( Wildcard )
Log_FirstFile ( Wildcard )
Log_FirstFile ( Wildcard )
Log_FirstFile ( Wildcard )
Read the name of the first file in the Logs directory.
Syntax
HRESULT Log_ClearFile(
[in]BSTR Wildcard,
[out, retval]BSTR* Filename
);
Parameters
Wildcard
[in] Filters the list of log names returned. Leave blank for all.
Success
[out, retval] TRUE if the log file was cleared, FALSE on failure.