﻿# 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](https://learn.microsoft.com/en-us/windows/win32/api/evntrace/nf-evntrace-updatetracew)' function from the WinAPI library\. The function updates the property parameter of the specified event tracing session:

```cpp
....
status = UpdateTraceW((TRACEHANDLE)NULL, LOGGER_NAME, pSessionProperties);
....
```

According to the documentation, the function is deprecated and shall be replaced by '[ControlTraceW](https://learn.microsoft.com/en-us/windows/win32/api/evntrace/nf-evntrace-controltracew)':

```cpp
....
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](https://pvs-studio.com/en/docs/manual/6743/) and the [V2016](https://pvs-studio.com/en/docs/warnings/v2016/) diagnostic rule\.