CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    4

    How to minimize DOS windows

    Hello
    We have to call 3 processes from a programme. start-1-2-3(give control to 3).
    In this first 2 are DOS processes which automatically closes DOS windows after completion but in that case the DOS window do not minimize and it looks very odd. Can we minimize DOS window by any means...?
    We are using CreateProcess for this... Any solution with code(if possible) will be highly appreciated. This is a very urgent case..

    Best Regards
    Ashish


  2. #2
    Join Date
    Apr 1999
    Location
    Miami, FL
    Posts
    67

    Use the STARTUPINFO structure in CreateProcess

    Well, from the docs on CreateProcess it looks like you can pass it a pointer to a STARTUPINFO structure whose wShowWindow member can be set to SW_MINIMIZE. Have you tried that?



    Alvaro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured