does not work ipc between ring0 and session 0

c++ / delphi package - dll injection and api hooking
Post Reply
alexacolor
Posts: 7
Joined: Thu Aug 22, 2013 2:30 pm

does not work ipc between ring0 and session 0

Post by alexacolor »

Last version and beta. Windows 8.1
My service (session0) install hooks and wait IPC messages from injected dll.
Hooks works fine, but the IPC messages do not received.
If running this code as application (session1) - all works fine.
If running this application in the session 0 - no messages
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: does not work ipc between ring0 and session 0

Post by madshi »

Does the HookProcessTermination demo work on your PC?

http://madshi.net/HookProcessTermination.zip

It also contains a service and an application which sends a message to the service.
alexacolor
Posts: 7
Joined: Thu Aug 22, 2013 2:30 pm

Re: does not work ipc between ring0 and session 0

Post by alexacolor »

yes.
it's weird.
Sorry. 'll watch my code.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: does not work ipc between ring0 and session 0

Post by madshi »

Then why does the demo work, but your application does not? Please compare the source code to try to find out. E.g. if you're using MSVC++, did you call "InitializeMadCHook()" in your service before calling any madCodeHook APIs?
Post Reply