Automate App via WIN32 possible?

Tech-Archive recommends: Speed Up your PC by fixing your registry



I'm in a situation where I need to launch a new process then automate
it to navigate its single menu and thru a file dialog. The main
application to launch the new process and automate it needs to be able
to wake up during a specifc web request (web app initiated) or act as
an always waiting / always on windows service (windows service
initiated) so that when the call comes in, the new process is created
and automation begins.

From what i gather launching a new process via a web app or a windows
service (Log On either as Local System w/ Interactive or This Account -
Admin) will prevent automation via SendMessage / PostMessage since
there is no interactive desktop.

My question is could the Terminal Services API or
CreateProcessAsUser / CreatDesktop / CreateWindowStation win32 api be
my solution around this non-interactive desktop in order to get
PostMessage to function for my automation process. Or is there a
better approach to automating this external process when a user is NOT
logged onto the desktop? There is no custom API available for the
launched process.

So far Im eyeing CreateProcessAsUser. On MSDN:
http://msdn2.microsoft.com/en-us/library/ms682429.aspx at the
lpStartupInfo section it explains: "If you want the process to be
interactive, specify winsta0\default."

Thanks.

.



Relevant Pages

  • Re: International Energy Agency accepts Peak Oil (sortof)
    ... > Launch capability at some small fraction of the current. ... There really is no need for automation except in so far as ... launch operation should yield a cost of around $10/kg to LEO. ... SPS economics. ...
    (sci.energy)
  • Re: Launch a doc file with Process.Start(my.doc), need to know when the file is closed.
    ... Will not be using automation and not guaranteed that it will be an office ... I want to be able to launch a document or image into the proper ... > How To Handle Events for Microsoft Word Using Microsoft Visual Basic .NET ...
    (microsoft.public.dotnet.framework)
  • Re: Hyperlink View Only Word Document
    ... Access Application launch and display the document in a way that ... The problem that came up was that if I use Automation from within ... handle of the window that contains the controlled app. ... know when to have your code unblock input. ...
    (comp.databases.ms-access)
  • Re: confused about normal.dot
    ... it turns out that the reason my Word opens and updates ... > This message is posted to a newsgroup. ... I'm pretty new to Word Automation from VB. ... >> If I do all this outside of automation, that is launch 2 copies word form ...
    (microsoft.public.word.docmanagement)
  • Re: Automate App via WIN32 possible?
    ... application to launch the new process and automate it needs to be able ... an always waiting / always on windows service (windows service ... Admin) will prevent automation via SendMessage / PostMessage since ... CreateProcessAsUser / CreatDesktop / CreateWindowStation win32 api be ...
    (microsoft.public.win32.programmer.ui)