Detours
Detours copied to clipboard
DetourDetach() Return ERROR_INVALID_OPERATION
The Code that hook and unhook RtlCompareMemory() with deoutrhooks library Has been Used for years without any issue,but the unhook procedure fails on windows server 2022(Windows Vista to Windows server 2019 all works fine),and DetourDetach call returns ERROR_INVALID_OPERATION.