1

Closed

Do not work on Windows8 x64.

description

Hi everyone,
I was tried to hook CreateFileW function on Windows8 x64.
, but there is a unknown problem.(It works good on Windows7 x64 and x86, Windows8 x86....)

Here is my source code.

define ATTACH(x) EasyH(&(PVOID&)Real_##x,Mine_##x, #x)

void EasyH(PVOID InEntryPoint, void InHookProc, PCHAR psz)
{
 WriteLog(9, "==1==");
 g_h_EasyH[g_EZH_index] = new HOOK_TRACE_INFO();
 WriteLog(9, "==2==");
 NTSTATUS retStatus = Real_LhInstallHook(*InEntryPoint, InHookProc, NULL, g_h_EasyH[g_EZH_index]);
 WriteLog(9, "==3==");
 g_EZH_index++;
}
.
.
.
.
EasyH(...,...,"CreateFileW");
.
.

.

result is

==1==
==2==

I can't find "==3==".
and crashed it.
Help me PLZ.
Closed Feb 15, 2014 at 7:05 AM by spazzarama
Fixed in changeset 73837

comments

wrote Feb 15, 2014 at 6:59 AM

Fixed on changeset 73837

wrote Feb 15, 2014 at 7:05 AM