IDSFLog::Write Method
The Write method writes the specified text to a log file.
Syntax
HRESULT Write(
[in] BSTR Text
);
Parameters
- Text [in]
The text to write to the log file.
Return Value
Write returns S_OK if the operation succeeds.
Remarks
The following VBScript code example shows how to write data to the DSFLogger object.
Dim DSFObj : Set DSFObj = CreateObject("DSF.DSF")
Dim DSFLog : Set DSFLog = DSFObj.Log
' Enable logging
DSFLog.Enabled = TRUE
' Write to the log file
DSFLog.Write "Simulated driver is starting"
' Test the simulator
TestSimulator
DSFLog.Write "Test is complete"
DSFLog.Enabled = FALSE
Requirements
Header |
DSFif.h |
See Also
Send comments about this topic to Microsoft
Build date: 9/21/2010