| 112 | } |
| 113 | |
| 114 | void Session::SetEtwFlushPeriod(uint32_t milliseconds) |
| 115 | { |
| 116 | assert(handle_); |
| 117 | if (auto sta = pmSetEtwFlushPeriod(handle_, milliseconds); sta != PM_STATUS_SUCCESS) { |
| 118 | throw ApiErrorException{ sta, "set ETW flush period call failed" }; |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | PM_SESSION_HANDLE Session::GetHandle() const |
| 123 | { |