hello all:
I have an Application (written in VC++ MFC) that needs to play some media files, including MP4, JPEG, HTML only.
I thought the easiest way would be to activate the locally installed Applications that are associated with those file extensions, and ask those Apps to open my media files.
I then started using CreateProcess() to start those locally installed Apps, like Chrome or MediaPlayer and passed to them my media file name as cmd line parameters via the call to CreateProcess().
And I'm glad to say it works. My Files are played in sequence.
However, after calling the local Apps, and getting a process handle for them via my call to CreateProcess(), I would like to ask the Apps to perform other tasks such as change PageViewMode from Portrait to LandScape, or display in Maximised Mode, Or other interesting stuff.
So My question is,
1- after retrieving the Process Handle, can I use it to do anything useful at all, or can I just use it to call TerminateProcess() or CloseHandle() ?
2- If I want to ask these Apps to perform certain tasks, what options are available to me, and can i access their APIs easily ?
Your informed suggestions are welcome?
Many Thanks Rez.
What I have tried:
Nothing other than what I described above