Search found 155 matches

by neji
Tue Apr 03, 2007 7:59 am
Forum: madCodeHook
Topic: Hook detection
Replies: 9
Views: 28795

It seems to be working

Image
by neji
Wed Mar 21, 2007 11:38 am
Forum: madKernel
Topic: Find a String in Memory
Replies: 3
Views: 14716

hi :) after a long time I had time to look at the method you mentioned. Long Story Short. I Tried to work with VirtualQueryEx but I wasn't very successful. I Created a dummy.exe with a global Variable '1121' in it. In another App I tried to find that Value in Memory. Here is what I tried : procedure...
by neji
Mon Mar 12, 2007 11:16 am
Forum: madKernel
Topic: Little Problem with IProcess.ExecuteFunction
Replies: 1
Views: 8134

Little Problem with IProcess.ExecuteFunction

Hi Matthias, I want to run a function in the context of a foreign process. So I wanted to use ExecuteFunction. Your example works just fine, but how can I pass an Integer/cardinal Value as the Parameter? I tried to cast the param in the Remote function procedure RemoteFunction(var params); var dwSty...
by neji
Tue Feb 27, 2007 2:30 pm
Forum: madCodeHook
Topic: Hooking DirectX
Replies: 14
Views: 12263

mh now it works. It seems that I just had the wrong directx version installed on my machine. But when I now try to send some Text, I get an AV.......i had waited for that :-/ procedure ShowText(x,y: Integer; s: String; col: TD3DColor); var rect : TRect; begin rect.Top := y; rect.Left := x; rect.Bott...
by neji
Tue Feb 27, 2007 1:19 pm
Forum: madCodeHook
Topic: Hooking DirectX
Replies: 14
Views: 12263

The declaration of the Interface : IDirect3DDevice9 = interface (IUnknown) ['{D0223B96-BF7A-43FD-92BD-A43B0D82B9EB}'] (*** IDirect3DDevice9 methods ***) function TestCooperativeLevel : HResult; stdcall; function GetAvailableTextureMem : Cardinal; stdcall; function EvictManagedResources : HResult; st...
by neji
Tue Feb 27, 2007 1:08 pm
Forum: madCodeHook
Topic: Hooking DirectX
Replies: 14
Views: 12263

ok, fixed that (I also had the wrong declaration above for version9) to function PresentCallback(self : Pointer; const SourceRect, DestRect : PRect; const DestWindowOverride : HWND; DirtyRegion : PRgnData) : HResult; stdcall; begin result := PresentNext(self,SourceRect,DestRect,DestWindowOverride,Di...
by neji
Tue Feb 27, 2007 12:59 pm
Forum: madCodeHook
Topic: Hooking DirectX
Replies: 14
Views: 12263

sorry but I need your help once again. I tried to Hook the Present function of the IDirect3DDevice Interface function Present(pSourceRect, pDestRect: PRect; hDestWindowOverride: HWND; pDirtyRegion: PRgnData): HResult; stdcall; But when I test this with dxdiag I got an accessviolation. This is the co...
by neji
Tue Feb 27, 2007 10:54 am
Forum: madCodeHook
Topic: Hooking DirectX
Replies: 14
Views: 12263

aiii missed that...thanks :)
by neji
Tue Feb 27, 2007 10:46 am
Forum: madCodeHook
Topic: Hooking DirectX
Replies: 14
Views: 12263

In your example you chose ne methodIndex 15 for the function CreateDevice8 HookCode(GetInterfaceMethod(result, 15), @CreateDevice8Callback, @CreateDevice8Next) But my Interface declaration looks like this Oo IDirect3D8 = interface(IUnknown) ['{1DD9E8DA-1C77-4d40-B0CF-98FEFDFF9512}'] (*** IDirect3D8 ...
by neji
Tue Feb 27, 2007 9:17 am
Forum: madCodeHook
Topic: Hooking DirectX
Replies: 14
Views: 12263

in the DirectX Demo you use a function "GetInterfaceMethod" where you search for the Pointer of the functions within the interfaces right?

How do you know which methodIndex leads to which function?
by neji
Fri Feb 23, 2007 3:27 pm
Forum: madCodeHook
Topic: Hooking DirectX
Replies: 14
Views: 12263

Hooking DirectX

Hello Madshi, I know you aren't an expert with directx but maybe you can give me hint anyway. I have a small little Game and want to show some Text (the time , fps,...) in one corner of the game window. Because I am a complete beginner in those graphic things I tried to use SetText on the DC of the ...
by neji
Thu Feb 01, 2007 9:25 am
Forum: madCodeHook
Topic: hooking messageboxA ?
Replies: 2
Views: 3961

ok i've posted too fast.
HookAPI(user32,'messageBoxA',@messageBoxACallback,@messageBoxNext);
The Api Name is Case Sensitive so the 'm' had to be 'M'.....

But another Question....can I Intercept dialogcalls which are made by ShowMessage or MessageDlg?
by neji
Thu Feb 01, 2007 9:08 am
Forum: madCodeHook
Topic: hooking messageboxA ?
Replies: 2
Views: 3961

hooking messageboxA ?

Hi Madshi, I'm a little bit confused. After some time now I wanted to hook a simple API "MessageBoxA" in my dll I do : var messageBoxNext : function(hwnd : HWND; lpcStr : PAnsiChar; lpCaption : PAnsiChar; uType : Cardinal) : Integer; stdcall; function messageBoxACallback(hwnd : HWND; lpcSt...
by neji
Mon Jan 22, 2007 8:26 am
Forum: madCodeHook
Topic: why madCHook.dll?
Replies: 2
Views: 3351

If you have the licenced version of madCodeHook you don't have to add the madchook.dll
by neji
Wed Oct 18, 2006 2:03 pm
Forum: madKernel
Topic: Notify on Hint change
Replies: 2
Views: 8375

Thank you, had the same idea and it seems to work quite fine :D