Jump to content

iono lame sample of message interpretation :)


WSCPorts
 Share

Recommended Posts

my Helper or Gui is just a window to access That Filters our message :)

Func HelperGui()
Global $HelperGui = GuiCreate("Helper")
Global $AU3_Handle = 0x508
GUISetState()
GUIRegisterMsg($AU3_Handle, "_Filter")
EndFunc
HelperGui()
Func _Filter($hWndGUI, $MsgID, $WParam, $LParam)
Select 
Case $MsgID = $AU3_Handle
    MsgBox(0, "LParam", $LParam)
EndSelect
EndFunc 
While WinExists("Helper")
    Sleep(50)
WEnd

The Second one sends out message to be intercepted by GUI..

Func GetCurrentThread()
$hTiD = DllCall("kernel32.dll","int", "GetCurrentThread")
Return $hTiD[0]
EndFunc
$handleThread = GetCurrentThread()
Global $AU3_Handle = 0x508
Func SendMsg($hWTarget, $iMsg, $WParam, $LParam)
; Register WM_COMMAND (Dont use PostMessage, it wont work)
DllCall("user32.dll","int","SendMessage","hwnd",$hWTarget,"int",$iMsg,"int",$WParam,"int",$LParam)
EndFunc
While 1
SendMsg(WinGetHandle("Helper"), $AU3_Handle, 0, $handleThread)
Wend

I think i have to do Duplicate Handle and SuspendThread GetThreadContext/SetThreadContext Resume Thread to make a valid register editor but i think im on the right track :mellow:

Edited by WSCPorts
http://www.myclanhosting.com/defiasVisit Join and contribute to a soon to be leader in Custumized tools development in [C# .Net 1.1 ~ 2.0/C/C++/MFC/AutoIt3/Masm32]
Link to comment
Share on other sites

  • 1 year later...

I think i have to do Duplicate Handle and SuspendThread GetThreadContext/SetThreadContext Resume Thread to make a valid register editor but i think im on the right track :whistle:

Has anyone gotten closer of creating a register editor?

Maybe someone could help me create a dll struct for the APIs: GetThreadContext(), SetThreadContext() and SuspendThread()

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...