IsExpression
[in] Set to 0 if
Buffer
is a simple string, and 1 if
Buffer
contains an expression.
Buffer
[in] String to write to the log file.
MaxSize
[in] The maximum size the log file can grow to. Once the file reaches this size, then the oldest
data is discarded. to make room for the new data.
Success
[out, retval] TRUE if the buffer was cleared, FALSE if buffer failed to clear.
Remarks
The Msg parameter text should be passed in as a URL encoded string. To have a Nul character sent out the
serial port, pass a “%00” as part of the Msg string.
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 )
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 )
Read the name of the first file in the Logs directory.
11
Summary of Contents for WACI NX-22
Page 36: ......
Page 53: ...Finally drag and drop selected files from your File Explorer...