Click here to Skip to main content
16,020,990 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have this code segment.

MIDL
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID&)Real_DrawText, Mine_DrawText); // <- magic
DetourTransactionCommit();


I'm trying to make a dll. But when I tried to build it, error such as
MIDL
error C2065: 'DetourTransactionBegin' : undeclared identifier
appears. What do I need to do? What do I need to include?
Posted

1 solution

It is a library from Microsoft to instrument/hook the windows APIs.
Here are a couple of good articles are CP -
API Hooking with MS Detours[^]
Circumventing Windows Group Policies using Detours[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900