c# - Catching window creation message when application is launched -


i trying figure out how intercept message sent create window when application launched. want catch message, , somehow save , send out 10 seconds later.

so can intercept message before creates application window , send out myself.

the purpose isn't add 10 second delay on application, trying learn messaging system little more(how catch msg , send out myself.) unsure need filter catch window creation of application , how store message can send out. don't wan't delay whole process being launched, window creation.

my application listens notepad being launched

my application captures message create window

my application stores message , delays window creation 5-10 seconds

my application sends message out , notepad window created.

can me out little accomplishing this? have no problem trying in c#, vb.net or c++. great.

what looking exists in windows, referred "hooking" (no relation ladies of evening). native win32 code. here old article (11 years ago!) hits highlights http://www.codeproject.com/articles/2082/api-hooking-revealed.

hooking hard use, if master have learned lots in process. great stuff writing trojans viruses, etc. why requires elevated elevated privileges use. without checking, newer versions of windows may have locked out of things articles mentioned, if have full rights, suspect or of still works.

if interested in learning how messaging works, not need dig hooking. learn using spy32 (or equivalent), , override message handlers in learning executables write messages , forth each other , know more windows else.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -