Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SetDeviceOption method sets the given options for the specified device.
Syntax
HRESULT SetDeviceOption(
LONG hDevice,
LPWSTR pwszDeviceName,
LPWSTR pwszDeviceOptions
);
Parameters
hDevice
[in] The handle to the device tracing topology. You can combine multiple handles by using the bitwise OR operator (for example, hDevice1 OR hDevice2).pwszDeviceName
[in] The name of the device.pwszDeviceOptions
[in] A string that contains the options to set.
Return value
Note SetDeviceOption
returns one of the following values:
Return code | Description |
---|---|
S_OK | The operation was successful. |
S_FALSE | The operation was successful but the last device has been detached, which has triggered a rollup. |
HRESULT | The operation failed. You should use the FAILED macro to check HRESULT values. |
Requirements
Header |
Wttlogger.h |
Library |
Library:WTTLog.dll |
See also
CWTTLogger::SetDeviceTraceLevel
CWTTLogger::SetDeviceTracePriority
Build date: 9/14/2012