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. Invisible Process [modified]

Invisible Process [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 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.
  • D Offline
    D Offline
    darkcloud 42o
    wrote on last edited by
    #1

    Hi, Im writing a webserver which loads an exe file as cgi application. What im trying to do is not make the window popup each time someone visits the site. I still need the process visible in taskmanager though... Heres what im using at this point to load the cgi app and get the std out... which is what i need to do... char psBuffer[1024]; FILE *pPipe; send(AcceptSocket, header, strlen(header), 0); pPipe = _popen("test.exe", "r"); //..other functions _pclose( pPipe ); Any Help on this matter is appreciated.

    S B 2 Replies Last reply
    0
    • D darkcloud 42o

      Hi, Im writing a webserver which loads an exe file as cgi application. What im trying to do is not make the window popup each time someone visits the site. I still need the process visible in taskmanager though... Heres what im using at this point to load the cgi app and get the std out... which is what i need to do... char psBuffer[1024]; FILE *pPipe; send(AcceptSocket, header, strlen(header), 0); pPipe = _popen("test.exe", "r"); //..other functions _pclose( pPipe ); Any Help on this matter is appreciated.

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      I assume you've got a console window popping up. If you make the exe a normal Win32 project instead of a console one you will not get a console window popping up.

      Steve

      D 1 Reply Last reply
      0
      • S Stephen Hewitt

        I assume you've got a console window popping up. If you make the exe a normal Win32 project instead of a console one you will not get a console window popping up.

        Steve

        D Offline
        D Offline
        darkcloud 42o
        wrote on last edited by
        #3

        Thnx.. I dont think thats going to help in this situation.. because if users were to write thier own cgi.. they would have to do the same.. and such is too much to ask in my opinion... Theres got to be another way to hide the bloody window...

        1 Reply Last reply
        0
        • D darkcloud 42o

          Hi, Im writing a webserver which loads an exe file as cgi application. What im trying to do is not make the window popup each time someone visits the site. I still need the process visible in taskmanager though... Heres what im using at this point to load the cgi app and get the std out... which is what i need to do... char psBuffer[1024]; FILE *pPipe; send(AcceptSocket, header, strlen(header), 0); pPipe = _popen("test.exe", "r"); //..other functions _pclose( pPipe ); Any Help on this matter is appreciated.

          B Offline
          B Offline
          benjymous
          wrote on last edited by
          #4

          Assuming you're on XP (or better..) can't you just run your Web Server as a different user - this way the web server will have a seperate desktop, on which any cgi programs will run

          -- Help me! I'm turning into a grapefruit! Buzzwords!

          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