Wide hook not loded into WWAHost.exe

c++ / delphi package - dll injection and api hooking
Post Reply
pinya
Posts: 18
Joined: Tue Feb 05, 2013 4:39 am

Wide hook not loded into WWAHost.exe

Post by pinya »

I need to catch audio in metro app, but hook is not running for the WWAHost.exe.

Hook installed successfuly - InjectLibrary(L"xxx", strHookDll32.c_str(), ALL_SESSIONS, TRUE)

My library loaded in all process exept WWAHost.exe (looked in ProcessExplorer and API monitor V2). How it can be... ??

MadCodeHook 3.1.5
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Wide hook not loded into WWAHost.exe

Post by madshi »

Did you add "ALL APPLICATION PACKAGES" NTFS access rights to your hook dll?
pinya
Posts: 18
Joined: Tue Feb 05, 2013 4:39 am

Re: Wide hook not loded into WWAHost.exe

Post by pinya »

I do like this
SetNamedSecurityInfo((LPWSTR)strHookDll32.c_str(), SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, NULL, NULL,NULL, NULL);

Is it not anought?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Wide hook not loded into WWAHost.exe

Post by madshi »

No, in order to have your hook dll injected into Metro apps, you need to have "ALL APPLICATION PACKAGES" explicitly listed in the NTFS access rights. I don't know WWAHost.exe, though. Is it a normal Metro app? Or some sort of OS system process? If it's a normal Metro app, then "ALL APPLICATION PACKAGES" should help. If it's an OS system process then maybe its blocking DLL injection. I don't know...
pinya
Posts: 18
Joined: Tue Feb 05, 2013 4:39 am

Re: Wide hook not loded into WWAHost.exe

Post by pinya »

Yes, it is permision problem. I manualy add ALL APPLICATION PACKAGES permision to my dll and it loaded successfully.

Can you, please , give a code sample (C++) to add ALL APPLICATION PACKAGES....
erum
Posts: 1
Joined: Mon Dec 23, 2013 6:14 am

Re: Wide hook not loded into WWAHost.exe

Post by erum »

what can I say? Maybe the control is using a font which has weird signs where you expect numbers?
Post Reply