Search found 33 matches

by Mazinger
Mon Oct 02, 2006 4:28 pm
Forum: madCodeHook
Topic: SetwindowHookEx
Replies: 11
Views: 9114

Sorry, I actually use a WH_CBT hook to detect when a certain window is created on my system (yes, is a system-Wide hook), so I have a main app and a DLL with the hook callback function. On the DLL I have two additional functions, to set (setwindowHookEx) and remove the hook. These two functions are ...
by Mazinger
Mon Oct 02, 2006 12:57 pm
Forum: madKernel
Topic: About madkernel modules enumeration
Replies: 1
Views: 7048

About madkernel modules enumeration

Hi,

I have a program that uses LoadLibrary and FreeLibrary API function to play with a DLL.

The question is: After FreeLibrary is called without error, if I use madkernel.modules(true) and walk throught the list of returned modules, I find my library. Why?

Thanks.
by Mazinger
Mon Oct 02, 2006 12:08 pm
Forum: madCodeHook
Topic: SetwindowHookEx
Replies: 11
Views: 9114

SetwindowHookEx

Hi,

I'm playin with madCodeHook and SetWindowHookEx, and I have a little question:

Where is the best place SetWindowHookEx API function will be called? On the main program? on the DLL?

Thanks in advance.
by Mazinger
Wed Sep 13, 2006 6:16 pm
Forum: madCodeHook
Topic: Shared memory: ERROR_ACCESS_DENIED
Replies: 6
Views: 5828

Thank, but I'm not sure what you says: Filemapping name "SHAREDM" named as as "SHAREDM1" for session 1 "SHAREDM2" for session 2 ... Sounds nice and avoids conflicts. Will try it. I have to mantein backwads compatibility with old windows 98 machines, so I will use madCod...
by Mazinger
Wed Sep 13, 2006 5:45 pm
Forum: madCodeHook
Topic: Shared memory: ERROR_ACCESS_DENIED
Replies: 6
Views: 5828

One clue: the error only happens on the console (session 0).

On Scenario 1, administrator is logged on the console. If I log on as administrator on other session, all works fine.

Session 0 has a special treatment?

Thanks.
by Mazinger
Wed Sep 13, 2006 3:44 pm
Forum: madCodeHook
Topic: Shared memory: ERROR_ACCESS_DENIED
Replies: 6
Views: 5828

Thanks for your reply. I don't want a GLOBAL shared filemapping. I need per session shared filemapping so I point to this session shared memory all the shared data I need to work on my hooks. The DLL that creates the filemapping is used by a setWindowsHookEx, invoked on the main app to establish a s...
by Mazinger
Wed Sep 13, 2006 2:03 pm
Forum: madCodeHook
Topic: Shared memory: ERROR_ACCESS_DENIED
Replies: 6
Views: 5828

Shared memory: ERROR_ACCESS_DENIED

Hi, On my program, I use this call to create and access to a shared memory: MapHandle:=CreateFileMapping($FFFFFFFF,nil,PAGE_READWRITE,0,SizeOf(SMR^),PChar('SHAREDM')); I use the program on a Terminal Server running on different sessions, and this is the problem I'm unable to resolve: Scenario 1: The...
by Mazinger
Fri Jul 21, 2006 6:56 pm
Forum: madCodeHook
Topic: NOD32 problem
Replies: 14
Views: 10379

I just received a message from ESET (NOD32) guys that the last update implements a fix for my problem, so I'm happy at this time.
by Mazinger
Sun Jul 16, 2006 8:11 am
Forum: madCodeHook
Topic: NOD32 problem
Replies: 14
Views: 10379

NOD32

Hi madshi,

I sent a copy of my app to NOD32 and I'm waiting for the answer.
by Mazinger
Fri Jul 07, 2006 7:06 am
Forum: madCodeHook
Topic: NOD32 problem
Replies: 14
Views: 10379

NOD32 problem

Hello all, I'm using NOD32 antivirus. I'm developing an Delphi 2006 application that consist of: 1. One process (executable main file) 2. A service (to assist the main file, for example to inject code on certain processes when user has no administrative rights) I'm using madCodeHook on both programs...
by Mazinger
Mon Jan 30, 2006 3:01 pm
Forum: madCodeHook
Topic: How to do this ...
Replies: 1
Views: 2008

How to do this ...

I want to hook this DLL exported function using madcodehook: Procedure MCI_Callback(const name:PChar;const value:PChar;dim:Integer;const prog:PChar); cdecl; Begin MCI_Next(name,value,dim,prog); End; ... to modify the "value" when I call to MCI_Next (on certain values of "name") H...
by Mazinger
Tue Nov 08, 2005 1:42 pm
Forum: madRemote
Topic: Problem with remoteExecute and IProces().Terminate
Replies: 2
Views: 14238

If I use Windows.TerminateProcess instead Process(iPH).Terminate all works fine.

I use madExcept too in my app.

BTW, What's the difference between Windows API TerminateProcess and madKernel's IProcess.Terminate?

Thanks
by Mazinger
Tue Nov 08, 2005 11:24 am
Forum: madRemote
Topic: Problem with remoteExecute and IProces().Terminate
Replies: 2
Views: 14238

Problem with remoteExecute and IProces().Terminate

Hi, I use on my app madRemote and madKernel. The sequence is: 1. Create a process with CreateProcess API (iPH) 2. In some time, from my app, call RemoteExec to change an environment variable of iPH. 3. When my app is closing, madKernel Process(iPH).Terminate. All works fine if I don't execute point ...
by Mazinger
Mon Nov 07, 2005 9:31 am
Forum: madRemote
Topic: Set Environment variable for another process
Replies: 6
Views: 32173

OK, but I have another problem ...

Works fine! Thanks. But after the remote function is executed successfully if I try to terminate the process by issuing a Process(ProcessID).Terminate(900); Delphi generates a EExternalException on this line. I the remote funcion is not executed, the terminate procedure works fine. Any idea? Thanks.
by Mazinger
Sat Nov 05, 2005 1:04 pm
Forum: madRemote
Topic: Set Environment variable for another process
Replies: 6
Views: 32173

Set Environment variable for another process

Hi all, I'm trying to use madRemote to change a environment variable of another process, but ... The code seems very simple: ... // The function to be executed on remote process context: Function SetEnv(params: Pointer):dword; stdcall; Begin If SetEnvironmentVariable('COLORS','OFF') then Result:=0 E...