V1109. Function is deprecated. Consider switching to an equivalent newer function.
The analyzer has detected a call to a deprecated function. The function may be not supported or may be removed in later library versions.
Look at a call to the 'UpdateTraceW' function from the WinAPI library. The function updates the property parameter of the specified event tracing session:
....
status = UpdateTraceW((TRACEHANDLE)NULL, LOGGER_NAME, pSessionProperties);
....
According to the documentation, the function is deprecated and shall be replaced by 'ControlTraceW':
....
status = ControlTraceW((TRACEHANDLE)NULL, KERNEL_LOGGER_NAME,
pSessionProperties, EVENT_TRACE_CONTROL_QUERY);
....
The diagnostic rule has data about deprecated functions from the following libraries: WinAPI and GLib.
If you need to mark deprecated functions manually, use the function annotation mechanism and the V2016 diagnostic rule.
This diagnostic is classified as:
You can look at examples of errors detected by the V1109 diagnostic. |