mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-23 05:57:19 +00:00
56833edae7
There is no need to LoadLibrary and GetProcAddress to get pointers to NtDelayExecution or NtSetTimerResolution. These functions don't have prototypes in any SDK header, but they are exported in ntdll.dll and we can simply declare the prototype and link ntdll. There is also no chance that the functions do not exist: I checked an old install of Windows NT 4.0 and both of these functions exist. Also used NtSetTimerResolution instead of ZeSetTimerResolution for consistency (they are the same). Also changed system timer resolution log message units to μs with one decimal digit for readability. This is the actual amount of precision available to us. |
||
---|---|---|
.. | ||
windows |