Search found 14 matches

by mdevoe
Tue Sep 11, 2018 1:55 pm
Forum: madCodeHook
Topic: SendIpcMessage from service to usersession fails on 32 bit
Replies: 23
Views: 25491

Re: SendIpcMessage from service to usersession fails on 32 b

Although I'll go ahead and call InitMadCHook in both processes, it appear only the admin process asking the non-admin process needs to call InitMadCHook.

Thanks again.
by mdevoe
Tue Sep 11, 2018 1:44 pm
Forum: madCodeHook
Topic: SendIpcMessage from service to usersession fails on 32 bit
Replies: 23
Views: 25491

Re: SendIpcMessage from service to usersession fails on 32 b

My apologies, I once again reviewed this entire topic and failed to notice the "InitMadCHook" suggestion. I didn't think it would be related to IPC but it appears it does. I believe my solution is now behaving properly. Thanks so much for your quick replies and sorry for taking us down the...
by mdevoe
Tue Sep 11, 2018 1:31 pm
Forum: madCodeHook
Topic: SendIpcMessage from service to usersession fails on 32 bit
Replies: 23
Views: 25491

Re: SendIpcMessage from service to usersession fails on 32 b

SendIpcMessage works fine when not asking for a reply. This is true for an admin process sending a message to a non-admin process. However, expecting a reply causes it to hang on the admin process until the timeout expires. The non-admin queue owner never receives the message. It does not appear the...
by mdevoe
Tue Sep 11, 2018 12:34 pm
Forum: madCodeHook
Topic: SendIpcMessage from service to usersession fails on 32 bit
Replies: 23
Views: 25491

Re: SendIpcMessage from service to usersession fails on 32 b

Thanks for the quick response. Hopefully this is the info you're looking for. When running as a standard (non-admin) rights, I find the following: Name: \RPC Control\mchipc3516FT Handle: 0x504 Access:0x001F0001 Object Address: 0xFFFFD83DE60FC90 Decoded Access: READ_CONTROL|DELETE|SYNCHRONIZE|WRITE_D...
by mdevoe
Fri Sep 07, 2018 7:27 pm
Forum: madCodeHook
Topic: SendIpcMessage from service to usersession fails on 32 bit
Replies: 23
Views: 25491

Re: SendIpcMessage from service to usersession fails on 32 b

I’m encountering a similar problem but mine is not related o 64 vs 32 bit. In my case, both my service and the queue owner running in a user session are 32 bits. In my case it seems to do with the elevation rights of the process creating the queue. I can also reproduce this by running one process wi...
by mdevoe
Mon Apr 02, 2012 5:18 pm
Forum: madCodeHook
Topic: Newbie pointer confusion for ExtTextOutA
Replies: 2
Views: 3333

Re: Newbie pointer confusion for ExtTextOutA

Well that is embarrassing. Thanks for the quick reply. I couldn’t see the forest for the trees and got hung up on the const definition and pointers. Thanks again. I can now stop pounding my head on the keyboard.
by mdevoe
Mon Apr 02, 2012 4:21 pm
Forum: madCodeHook
Topic: Newbie pointer confusion for ExtTextOutA
Replies: 2
Views: 3333

Newbie pointer confusion for ExtTextOutA

Hi All, This is no doubt something I’m doing wrong. I’ve not run into trouble hooking most API’s but for some reason, the target app crashes when I hook ExtTextOutA. The app is crashing after my code executes. I’m probably not defining the next hook or the hook proc properly but still can’t figure i...
by mdevoe
Fri Feb 05, 2010 1:22 pm
Forum: madCodeHook
Topic: Hooking process creation, am I missing any hooks?
Replies: 12
Views: 12446

The undocumented internal version does suggest it is the root function for launching a process. I had to hook it when I was messing with a dot.NET app. I suspect the .NET CLR skipped the others and went directly to CreateProcessInternalW. If you’re still missing apps launch, have you considered the ...
by mdevoe
Thu Feb 04, 2010 7:26 pm
Forum: madCodeHook
Topic: Hooking process creation, am I missing any hooks?
Replies: 12
Views: 12446

There is also an undocumented "CreateProcessInternalW" in kernel32 that I've had to hook. Pardon the PowerBasic code but here is the function's declaration that worked... DECLARE FUNCTION CreateProcessInternal LIB "KERNEL32.DLL" ALIAS "CreateProcessInternalW" _ (unknown...
by mdevoe
Thu Apr 17, 2008 6:17 pm
Forum: madCodeHook
Topic: Off-Topic Job Offer
Replies: 0
Views: 8628

Off-Topic Job Offer

Hi All, I’m assuming this off-topic posting is okay since I’ve seen other similar postings here. The company I work for (Iatric Systems) is seeking a full-time programmer skilled with madCodeHook and all the API / IPC work that goes along with it. The project is written in VB6 for the main program w...
by mdevoe
Fri Sep 28, 2007 4:42 pm
Forum: madCodeHook
Topic: Crash when CreateProcessEx vs hooking as a separate step
Replies: 2
Views: 3107

Hi All, While I still don’t have a solution, I thought I’d update this posting with some additional troubleshooting information. A colleague directed me to a posting on this site at http://forum.madshi.net/viewtopic.php?t=1122&highlight=createprocessex. I implemented a possible solution found in...
by mdevoe
Fri Sep 28, 2007 3:41 pm
Forum: madCodeHook
Topic: Crash when CreateProcessEx vs hooking as a separate step
Replies: 2
Views: 3107

Crash when CreateProcessEx vs hooking as a separate step

Hi All, I’m wondering if anyone else has come across this problem. When I launch the target application and inject my DLL as a separate step, all goes well and there are no problems. However, if I launch and inject at the same time using CreateProcessEx, the target application crashes. I’ve narrowed...
by mdevoe
Fri Jul 15, 2005 8:57 pm
Forum: madCodeHook
Topic: IPC + Visual Basic Example
Replies: 20
Views: 27531

I got it to work

Hi All, I've gotten IPC to work in VB... Here is a complete sample project. 1. Create a standard VB project. Form1 is created by default. 2. Place a textbox (Text1) on Form1 and size it to consume most of the form. 3. Adjust the properties of the textbox to set MultiLine=True and add scrollbars if y...
by mdevoe
Thu Jul 14, 2005 5:45 pm
Forum: madCodeHook
Topic: IPC + Visual Basic Example
Replies: 20
Views: 27531

To avoid the readmemory error, change the callback definition to use ByVal for all your variables as in...

Code: Select all

Public Function IPCCallbackFunction(ByVal IPCname As String, ByVal messageBuf As Long, ByVal messageLen As Long, ByVal answerBuf As Boolean, ByVal answerLen As Long) As Long
good luck.