It looks an impressive from first glance, but in fact, you can do very little with that HWND you get. To be more presize only those things which are passed through stack without addressing memory. e.g. you can't read a content of list/tree control, all this because this assumes getting into address space of another process, which is a bit more complicated.
That is all for now
I found the Idea given as very interesting...and helpful ...but stuck up in a problem ..what I am trying to do is to write a application that opens up properties of any printer and fire test page on Windows 2000 machine.
Using the given Technique I could fire the test page but I am unable to click on OK button on the confirmayion dialog box which comes up just after Print Test Page "test page printed Properly"...
To open printer properties I am using
CreateProcess() with command line as
rundll32 printui.dll,PrintUIEntry /p /n printername
This opens up propertypage and I am able to print test page but after that my application is set as not responding till manually click on OK button.
code written for firing test page is
when i try to run the code the assertion error is coming. it seems like we've to give the start button caption in the last argument. mine is NT Workstation.Is it a problem with N? I want this in a different way like.. I want to send text from my application to a text box which is appeared in the browser. How do i do it? Plz help me if u know
Replace the first two lines of code by these lines, because
first we need to get the handle of the taskbar and then we
would be able to get the refrence of the button, because in windows architecture taskbar serves as the parent of the start button.