Search found 29 matches

by Silver Black
Fri Jul 04, 2008 12:51 pm
Forum: madCodeHook
Topic: Freezing CreatePRocess till user choice
Replies: 8
Views: 8007

My fault! I will study the documentation now, thank you for the tips.
by Silver Black
Fri Jul 04, 2008 11:20 am
Forum: madCodeHook
Topic: Freezing CreatePRocess till user choice
Replies: 8
Views: 8007

But can you give me a code example to PAUSE the callback, give control to the client-exe to show a messagebox-form to the user, and return the result to the callback so that it can go on relying upon the user answer? No. I won't do all the work for you... ;) It's not difficult. Just give it a try.....
by Silver Black
Fri Jul 04, 2008 11:06 am
Forum: madCodeHook
Topic: Freezing CreatePRocess till user choice
Replies: 8
Views: 8007

The way you're doing it "processInfo" is not filled with correct values. So the appliaction calling CreateProcess will use a "processInfo" structure with either random values or maybe zeroed out values. That won't work well. Ok! Instead you should in your hook callback function ...
by Silver Black
Fri Jul 04, 2008 12:09 am
Forum: madCodeHook
Topic: Invoking a function of the executable from the hook dll
Replies: 2
Views: 2842

Thanks, this will be useful of course in future.
by Silver Black
Fri Jul 04, 2008 12:08 am
Forum: madCodeHook
Topic: Freezing CreatePRocess till user choice
Replies: 8
Views: 8007

Now I know what was the cause of the problem: applications launched in asynchronous way work perfectly, applications synchronous not, because the callback does not wait for the CreateProcess to finish, so Windows reports an error (but there is actually no error) and the calling process does not wait...
by Silver Black
Tue Jun 24, 2008 2:57 pm
Forum: madCodeHook
Topic: I really need a tutorial on IPC
Replies: 15
Views: 13500

If you find time... thank you so much!
by Silver Black
Tue Jun 24, 2008 2:52 pm
Forum: madCodeHook
Topic: Hook process creation on Vista
Replies: 18
Views: 32514

Re: miscommunication

Yes, please, I'd love to. Here it is . Screenshots here (Italian blog). AFAIK CreateProcess/CreateProcessEx is not enough. There are other CreateProcessXXX (CreateProcessAsUser i think) API's which do not desend down to CreateProcess/Ex therefore they will be missed by your hook. Also does you hook...
by Silver Black
Tue Jun 24, 2008 2:05 pm
Forum: madCodeHook
Topic: I really need a tutorial on IPC
Replies: 15
Views: 13500

Yes, I saw that... But I'd like a fully functional example that compiles with no changes needed! :oops:

I usually don't ask this kind of things, as ready-to-use source-code, but this time I really need it, even the simplest one (that I will expand on my own).
by Silver Black
Tue Jun 24, 2008 2:03 pm
Forum: madCodeHook
Topic: Hook process creation on Vista
Replies: 18
Views: 32514

Re: miscommunication

I think we are mixing things up here and talking about too different things... I agree... :sorry: But I was answering the very first question of torstenv. If you have a system-wide hook which intercepts process creation then what are your issues? My system has a listing of processes that a user can...
by Silver Black
Tue Jun 24, 2008 1:34 pm
Forum: madCodeHook
Topic: I really need a tutorial on IPC
Replies: 15
Views: 13500

Re: follow-up

mikec wrote:Yes but all the code is in the demo's and help files.
Wich demo are you talking about? :o

All my CreateIPCQueue related code is in C++ - i can post if you want - just post back if you want me to.
I work in Delphi... :cry:
by Silver Black
Tue Jun 24, 2008 1:31 pm
Forum: madCodeHook
Topic: Hook process creation on Vista
Replies: 18
Views: 32514

Re: Hook process creation on Vista

Has anyone found a reliable method to detect/hook ALL process creation in Vista? Yes, I have. My hook works with XP and with Vista. With Vista, mark your executable with a manifest file requesting Admin privileges (an admin password will be asked at executable launch). Now I ask you: have you found...
by Silver Black
Tue Jun 24, 2008 1:26 pm
Forum: madCodeHook
Topic: I really need a tutorial on IPC
Replies: 15
Views: 13500

Re: More info...

// In you control application 1) Define a unique IPC name 2) Define a critical section or other thread-protection mechanism 2) Create a callback routine - code is shown in both the help and the examples 3) Call CreateIpcQueue/Ex - you now have an IPC channel created, you have protected access to it...
by Silver Black
Mon Jun 16, 2008 11:08 pm
Forum: madCodeHook
Topic: I really need a tutorial on IPC
Replies: 15
Views: 13500

carlos wrote:with madshi ipc? or some other ipc lib?
With madshi.
Unfortunately this is not enough for me. I'm using Delphi, of course.

Thank you in advance for any help!
by Silver Black
Mon Jun 16, 2008 5:38 pm
Forum: madCodeHook
Topic: dll to exe communication problems..
Replies: 9
Views: 8441

I can I do the same IPC call with my client in Delphi?
I have the same problem: make the request from the client to the user (from the dll it works, but I don't like it) making the CreateProcessCallback waiting for the client method to terminate.

Please help! :cry:
by Silver Black
Mon Jun 16, 2008 3:21 pm
Forum: madCodeHook
Topic: I really need a tutorial on IPC
Replies: 15
Views: 13500

I really need a tutorial on IPC

Please, I really need an IPC tutorial (in Delphi!) with code example to how implement IPC: my_hook_dll <--> my_exe_client

I'm stuck!!! :cry: :cry: :cry: