| 28 | |
| 29 | template<typename ... Arg> |
| 30 | uint64_t call_hook(const Arg ... args) |
| 31 | { |
| 32 | void* hooked_func = GetProcAddress(LoadLibrary("win32u.dll"), "NtDxgkGetTrackedWorkloadStatistics"); |
| 33 | |
| 34 | auto func = static_cast<uint64_t(_stdcall*)(Arg...)>(hooked_func); |
| 35 | |
| 36 | return func(args ...); |
| 37 | } |
| 38 | |
| 39 | struct HandleDisposer |
| 40 | { |
no outgoing calls
no test coverage detected