RE: Running an Exe process then hidding?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Mohamoss (mohamed.mossad_at_egdsc.microsoft.com)
Date: 04/28/04


Date: Wed, 28 Apr 2004 15:48:37 GMT

hi
yes .. it could be done through the proccess class and here is a general
idea; you will use the process of the System.Diagnostic namespace. Start
the notepad, hide you process, form one, pass a handler (IntP) of your
process to the other new one notepad (you do that through API calls). Once
done working with process two, you will do another API call (using the
handler that you hold) to reshow your other process.
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC



Relevant Pages

  • Re: Poweroff / shell
    ... it was not the Explorer but Winlogon that handled that broadcast and called to ExitWindowAPI. ... if you are running your own application as the shell you can always "fix" the behavior by providing your own handler for the ... Basically if you catch the message by your window or thread proc, you should call a shutting the system ... Some more info and ways how to intercept the power management events you can find in this thread: ...
    (microsoft.public.windowsxp.embedded)
  • Re: Porting a DOS app to Windows
    ... > The application is in C and is using assembly code for ... Its been implemented in assembly via the interrupts ... delaying using a timer interrupt handler ... > routines in Win API. ...
    (comp.lang.asm.x86)
  • Re: Is there a way to open a unicode file in Notepad with the correct script
    ... To reduce it to a single API, Notepad on XP uses the Win32 IstextUnicode() API. ... In Vista SP1 and later, Notepad uses it's own algorithms which are a bit smarter than IstextUnicode(), to try to detect whether text is Unicode or not. ...
    (microsoft.public.windowsxp.general)
  • Re: strange functions binutils-2.21
    ... I already know what some of this API does but these functions like ... I don't think the sockets API has any ... Now in later code you can kake a pointer to this function: ... // Could make decisions to assign different values to handler here. ...
    (comp.lang.c)
  • Re: Winforms, Shown Event and SetEnvironmentVariable
    ... Timing done using "QueryThreadCycleTime" API (Vista and up), with Processor clock at fixed rate. ... If you just put a Stopwatch in the Shown event handler, start it before the two calls, and check the Elapsed time after them, what results do you get? ... Not that it's relevant to this question IMHO, but what's the .NET API for the QueryThreadCycleTime call? ...
    (microsoft.public.dotnet.languages.csharp)