Re: ShellExcute for non EXE files



OK, there are several issues here.  First, the question is how to send commands to a
command window.  This is going to depend on the interface you are using.  For example,
when we used a product called Reflection, which is philosophically similar to the idea of
a 3270 emulator (in fact, it can be a 3270 emulator as one of its many emulator modes),
the vendor supplied a DLL that accepted text strings that were sent as commands, and a
callback mechanism from that DLL that send received text to our app.  

So if you are calling ShellExecute, you shouldn't be invoking a service, but should be
invoking a GUI app running in your own login session.  If that has to start a service and
send and receive information from the service, then it might do so.  Note that starting a
process in a different account (thus limiting its rights to the rights possessed by that
account) is not at all the same as starting a service.  So what you should be looking for
is whatever you need as part of that WinHLLAPI library you refer to.  

Are you really sure this is starting in a different desktop?  While it might be, it is
also possible that it is simply Just Another App.  Where are there specifications about
this component that we can read about?
				joe

On 1 Feb 2006 15:50:57 -0800, "Ham" <muhammad.hamdan@xxxxxxxxx> wrote:

>Hello Joe,
>
>What I am trying to do is open the "SMS3270.WDM" from my code. This is
>a TN3270 session that allows me to connect to Mainframe server. Once I
>have that up I would be sending messages to that system from the code
>using the WinHLLAPI calls which is provided by IBM.
>
>My code as such doesnt have any GUI capabilities. This DLL that gets
>generated is a plug in for a bigger application which has the GUI part
>and based on what the application sends, the DLL invokes the calls and
>sends the message to the TN3270 session and get messages from them and
>send it back to the application. The application runs on a particular
>user and as u say it looks like when the "SMS3270.WDM" session is
>started by that account using ShellExecuteEx(), it starts up in the
>services desktop .
>
>I hope this gives you an idea of what I am trying to do. When the DLL
>calls the ShellExecuteEx(), I want to be able to see the session that
>starts up and maintain a connection between the process and then invoke
>the API calls to send the messages.
>
>Am new to windows programming and if something doesnt make sense, it is
>because of my ignorance.
>
>Thanks,
>Ham
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Run code part (like threadproc) in separate process
    ... some process level session objects. ... If one dll fails, it fails the process. ... wcoloader /dll:wcothread1.dll ...
    (microsoft.public.vc.language)
  • Re: Run code part (like threadproc) in separate process
    ... some process level session objects. ...   Each client is independent. ... If one dll fails, it fails the process. ...
    (microsoft.public.vc.language)
  • Re: Session State 2 Webprojects
    ... VB.NET compiler to create a DLL from all the VB.NET code-behind files. ... either you can drop session state but you'll have ... Patrice ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: any trick I need to know to use "expect -i"?
    ... My telnet session actually is to connect my debug port. ... It can receive commands, and print out some messages as well. ... my Expect code sill couldn't send my dump command to my debug pot. ...
    (comp.lang.tcl)
  • Re: Thread safety and performance
    ... > My opinion is that one session per thread is the way to go. ... If you design it with speed in mind, executing commands ... So you feel that prepared commands are more efficient than rowsets. ... figure out how to reuse prepared commands under transactions. ...
    (microsoft.public.data.oledb)