| 122 | static CritSect gHDCritSect; |
| 123 | |
| 124 | static void CheckInit() |
| 125 | { |
| 126 | if (gHDInitialized) |
| 127 | return; |
| 128 | |
| 129 | gNtQuerySystemInformation = (_NtQuerySystemInformation) GetLibraryProcAddress("ntdll.dll", "NtQuerySystemInformation"); |
| 130 | gNtDuplicateObject = (_NtDuplicateObject) GetLibraryProcAddress("ntdll.dll", "NtDuplicateObject"); |
| 131 | gNtQueryObject = (_NtQueryObject) GetLibraryProcAddress("ntdll.dll", "NtQueryObject"); |
| 132 | gHDInitialized = true; |
| 133 | } |
| 134 | |
| 135 | void HDCheckHandles(const std::string& traceStr) |
| 136 | { |
no test coverage detected