Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CREATE PROCESS

CREATE PROCESS

Scheduled Pinned Locked Moved C / C++ / MFC
help
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunit5
    wrote on last edited by
    #1

    i downloaded a file using openurl() in the form exe file.and executed using SHELLEXECUTE.BUT I WANT TO HIDE THE SET-UP .I TRIED THE CREATE PROCESS.BUT USING THE LATTER GIVES ME ERROR.

    J 1 Reply Last reply
    0
    • S sunit5

      i downloaded a file using openurl() in the form exe file.and executed using SHELLEXECUTE.BUT I WANT TO HIDE THE SET-UP .I TRIED THE CREATE PROCESS.BUT USING THE LATTER GIVES ME ERROR.

      J Offline
      J Offline
      Jetli Jerry
      wrote on last edited by
      #2

      In ShellExecute, make nShowCmd = SW_HIDE..... Use CreateProcess like this STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); // Start the child process. if( !CreateProcess( NULL, // No module name (use command line). "MyChildProcess", // Command line. NULL, // Process handle not inheritable. NULL, // Thread handle not inheritable. FALSE, // Set handle inheritance to FALSE. 0, // No creation flags. NULL, // Use parent's environment block. NULL, // Use parent's starting directory. &si, // Pointer to STARTUPINFO structure. &pi ) // Pointer to PROCESS_INFORMATION structure. ) hope this helps Jetli Constant Thing In World Is Change.

      S 2 Replies Last reply
      0
      • J Jetli Jerry

        In ShellExecute, make nShowCmd = SW_HIDE..... Use CreateProcess like this STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); // Start the child process. if( !CreateProcess( NULL, // No module name (use command line). "MyChildProcess", // Command line. NULL, // Process handle not inheritable. NULL, // Thread handle not inheritable. FALSE, // Set handle inheritance to FALSE. 0, // No creation flags. NULL, // Use parent's environment block. NULL, // Use parent's starting directory. &si, // Pointer to STARTUPINFO structure. &pi ) // Pointer to PROCESS_INFORMATION structure. ) hope this helps Jetli Constant Thing In World Is Change.

        S Offline
        S Offline
        sunit5
        wrote on last edited by
        #3

        THANKS IT HELPED ME.BUT still i have Queery.i have dwnloaded an Win-Zip file in exe form then i executed the the file using CREATE PROCESS (ALSO TRIED SHELL EXECUTE nShowCmd = SW_HIDE) BUT THE SET UP OF WINZIP IS NOT HIDDEN.IS THERE ANYWAY TO HIDE THIS SETUP

        1 Reply Last reply
        0
        • J Jetli Jerry

          In ShellExecute, make nShowCmd = SW_HIDE..... Use CreateProcess like this STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); // Start the child process. if( !CreateProcess( NULL, // No module name (use command line). "MyChildProcess", // Command line. NULL, // Process handle not inheritable. NULL, // Thread handle not inheritable. FALSE, // Set handle inheritance to FALSE. 0, // No creation flags. NULL, // Use parent's environment block. NULL, // Use parent's starting directory. &si, // Pointer to STARTUPINFO structure. &pi ) // Pointer to PROCESS_INFORMATION structure. ) hope this helps Jetli Constant Thing In World Is Change.

          S Offline
          S Offline
          sunit5
          wrote on last edited by
          #4

          THANKS IT HELPED ME.BUT still i have Queery.i have downloaded a Win-Zip file in exe form then i executed the the file using CREATE PROCESS (ALSO TRIED SHELL EXECUTE nShowCmd = SW_HIDE) BUT THE SET UP OF WINZIP IS NOT HIDDEN.IS THERE ANYWAY TO HIDE THIS SETUP

          D 1 Reply Last reply
          0
          • S sunit5

            THANKS IT HELPED ME.BUT still i have Queery.i have downloaded a Win-Zip file in exe form then i executed the the file using CREATE PROCESS (ALSO TRIED SHELL EXECUTE nShowCmd = SW_HIDE) BUT THE SET UP OF WINZIP IS NOT HIDDEN.IS THERE ANYWAY TO HIDE THIS SETUP

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            sunit5 wrote: BUT THE SET UP OF WINZIP IS NOT HIDDEN.IS THERE ANYWAY TO HIDE THIS SETUP By default, I do not think that WinZip can be ran without some sort of user interaction. You can, however, download the command-line add-on from here. That would allow you to use WinZip in an automated fashion.


            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups