c++ - Hooking Api with Detours crashes on Detach -
iam trying hook ntqueryvolumeinformationfile detours injecting .dll explorer.exe.
it works fine until try eject dll. after ejecting .dll, explorer.exe crashes.
os: windows 7 32bit compiler: visual studio 2012 detours 3.0 libary
dllmain.cpp: http://pastebin.com/6pgzcdhi header.h: http://pastebin.com/bgq527ym
i hope can me figuring out problem is. im working on problem 2 days , dont have clue.
thanks helping :)
if there's @ least 1 pending call, it's unsafe detach target process, safe detach require mechanism detect pending calls, far know, detours has no such mechanism, have make own. btw, can crash dump , !analyze -v in windbg, can diagnose what's happening when detach.
Comments
Post a Comment