Initializing a Log Device
Note This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.
Initializing a log device requires that you create a device string that defines the logging output. For information about creating a device string, see Device string.
The following procedures describe how to initialize a log device and set up your desired logging output.
To initialize a log device by using C
- Call the WTTLogCreateLogDevice function and pass it a device string and the handle to the log device.
To initialize a log device by using C++
Instantiate a CWTTLogger object.
Call the CWTTLogger::CreateLogDevice method and pass it a device string and the handle to the log device.
To initialize a log device by using COM
Instantiate a WTTLogger object.
Call the IWTTLog::CreateLogDevice method and pass it a device string and the handle to the log device.
To initialize a log device by using .NET
Use the Microsoft.WTT.Log namespace.
Create a new WTTLogger object and pass it a device string.
This section includes:
See Also
Getting Started with DTM Logger, Code Samples for DTM Logger
Build date: 9/14/2012