Aqua-Soft Forums: Detect Directx Hooks - Aqua-Soft Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Detect Directx Hooks Rate Topic: -----

#1 User is offline   djwilliams Icon

  • Group: Member
  • Posts: 277
  • Joined: 15-February 05

Posted 02 May 2009 - 12:48 AM

I was wondering if anyone would have ideas on how to detect what processes are hooked to DirectX/Direct3D. Any help/ideas would be wonderful.

Thanks.
0

#2 User is offline   holo13x Icon

  • Group: Member
  • Posts: 169
  • Joined: 24-April 08

Posted 02 May 2009 - 12:42 PM

what the problem with directX
0

#3 User is offline   djwilliams Icon

  • Group: Member
  • Posts: 277
  • Joined: 15-February 05

Posted 02 May 2009 - 12:46 PM

No problem. I want to be able to detect and list all applications actively running that is hooked into DirectX
0

#4 User is offline   matonga Icon

  • Group: Developers
  • Posts: 1,286
  • Joined: 04-September 06

Posted 03 May 2009 - 01:14 PM

This is a really complex one.

You would need to instance pretty all DirectX interfaces, then make a list of every .dll loaded and their's memory address ranges (maybe through WMI), then check every method pointer against these address ranges. You'll also need to disassemble every first 10 bytes (more or less) of code pointed by each method, and resolve any CALL / JMP FAR calls.

I dunno if there is a program to do this already. I know madCodeHook can hook into COM interfaces (such as DirectX) but this is an uncommon practice (AFAIK).
0

#5 User is offline   djwilliams Icon

  • Group: Member
  • Posts: 277
  • Joined: 15-February 05

Posted 03 May 2009 - 02:29 PM

sounds too complicated. but i have to do it.
0

#6 User is offline   ChristianS Icon

  • Group: Member
  • Posts: 56
  • Joined: 23-January 08

Posted 06 May 2009 - 11:27 AM

to hook directX : http://www.codeproject.com/KB/system/Hooki...irectX_COM.aspx

but you, you want to know which window use directX !?
0

#7 User is offline   djwilliams Icon

  • Group: Member
  • Posts: 277
  • Joined: 15-February 05

Posted 06 May 2009 - 12:14 PM

Yea I want to know all windows using it.
0

#8 User is offline   matonga Icon

  • Group: Developers
  • Posts: 1,286
  • Joined: 04-September 06

Posted 08 May 2009 - 12:18 AM

You meant processes which are using DirectX? Ouch, haha, forget my last post. :P
0

#9 User is offline   keane Icon

  • Group: Member
  • Posts: 23
  • Joined: 23-May 06

Posted 02 June 2009 - 06:51 PM

You would have to inject some code into the target process,

Then use GetModuleHandle to look for these DLLs: http://www.toymaker..../d3dx_dlls.html and some of the default dlls.

This post has been edited by keane: 02 June 2009 - 06:52 PM

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic