Re: Pass parameters to the application which is already running

From: Amit Dandavate (AmitDandavate_at_discussions.microsoft.com)
Date: 10/05/04


Date: Tue, 5 Oct 2004 04:15:06 -0700

Can you please send me the example for this.

Regards,

Amit Dandavate.

"Tom Shelton" wrote:

> On 2004-10-05, Amit Dandavate <AmitDandavate@discussions.microsoft.com> wrote:
> > Hi,
> >
> > I have a file associated to my application. When the user double clicks the
> > file in the explorer it gets opened in my application. Now my application is
> > SDI.
> > Again when the user double clicks the another file in the explorer I want
> > this file to be opened in the original instance and not in the new instance.
> > The code to have single instance of the application is with me. But I am not
> > able to pass command parameters to the previous instance.
> >
> > So If I can pass the parameters to the application which is already running
> > that will be helpful.
> >
> >
> > Thanks in Adv.
> >
> > Regards,
> >
>
> One way to do this is to use WM_COPYDATA to send the command line to the
> already running instance of the application.
>
> --
> Tom Shelton [MVP]
>



Relevant Pages

  • Re: Pass parameters to the application which is already running
    ... On 2004-10-05, Amit Dandavate wrote: ... > file in the explorer it gets opened in my application. ... > able to pass command parameters to the previous instance. ... already running instance of the application. ...
    (microsoft.public.vb.winapi)
  • Pass parameters to the application which is already running
    ... Again when the user double clicks the another file in the explorer I want ... able to pass command parameters to the previous instance. ... Thanks in Adv. ... Regards, ...
    (microsoft.public.vb.winapi)
  • Re: Netsh cant parse funny interface names
    ... If your image are both Explorer Shell based then it is not the HrRenameConnection problem since the Explorer will call it for you. ... > Regards. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Search for files created by a particular person
    ... Explorer by Owner. ... Explorer and check the box for "Owner". ... Regards ... "Paul Mckenna" wrote in message ...
    (microsoft.public.windows.server.general)
  • Re: IExplorer.exe error
    ... Regards, ... If I click on it in Explorer it opens Internet Explorer and ... > Emrys Davies. ... >> Has this happened to anyone, and if so, how did you fix it. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)