Senior Member
Thanks Meter 105
Posts: 175
Join Date: Feb 2011
Location: Sydney, New South Wales, Australia
|
Create the process using CreateProcess(), that will give you heaps of control over the program you're calling:
http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx
I'm not entirely sure how ADB works, but if possible, you could send it command line parameters (just like any other console application) with the lpCommandLine parameter of CreateProcess. However, it would be much more simple to do such a thing with the system method.
If the ADB shell isn't like any other console application, you could use window messages and emulate keystrokes/data sent to the application.
You could also look at this library.
Hope I helped,
Regards,
Mayazcherquoi
EDIT: Whilst googling the subject out of my own interest, I came across this. Hopefully that should sufficiently answer your question
|