Look up metadata for this provider/event and use it to look up the property. If the metadata isn't found look it up using TDH. Then, look up each property in the metadata to obtain it's data pointer and size.
| 187 | // If the metadata isn't found look it up using TDH. Then, look up each |
| 188 | // property in the metadata to obtain it's data pointer and size. |
| 189 | void EventMetadata::GetEventData(EVENT_RECORD* eventRecord, EventDataDesc* desc, uint32_t descCount, uint32_t optionalCount /*=0*/) |
| 190 | { |
| 191 | [[maybe_unused]] auto foundCount = GetEventDataWithCount(eventRecord, desc, descCount); |
| 192 | assert(foundCount >= descCount - optionalCount); |
| 193 | (void)optionalCount; |
| 194 | } |
| 195 | |
| 196 | // Some events have been evolving over time but not incrementing the version number. As an example DXGI::SwapChain::Start. |
| 197 | // Use this version of GetEventData when a data param might be available based on the version of the event |
no outgoing calls
no test coverage detected