Child process I/O

This is a discussion on Child process I/O within the Windows Programming forums, part of the Platform Specific Boards category; How do I redirect child process I/O in a Win32 application? MSDN only covers console-mode redirection....

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    23

    Child process I/O

    How do I redirect child process I/O in a Win32 application? MSDN only covers console-mode redirection.

  2. #2
    Registered User
    Join Date
    Jun 2003
    Posts
    23
    As far as I know, Stdin and Stdout refer to handles of the console.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    23
    I need the input(keypresses, mouseclicks, etc.) and output (to a DC, etc.) redirected to the parent.

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    >> I need the input(keypresses, mouseclicks, etc.) <<

    Look up windows hooks.

    >> and output (to a DC, etc.) redirected to the parent. <<

    Depending on what you need you can blit the windows or hook the GDI functions (lookup api hooking).

    This is a fairly complicated subject and I'm not sure you're are going to get all the required info on this forum. You could look up the source code for one of the VNCs (TightVNC maybe). You may get better help if you elaborate on what you need to do. Are you trying to emulate VNC/Remote Desktop or something different?

    Note: My intermediate posts above have been deleted.

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    23
    From what I read on MSDN, it seems that the child process would have to call a hooking function. For what I want to do, I do not wish to modify the child process.

  6. #6
    Registered User
    Join Date
    Jun 2003
    Posts
    23
    I just realized that I do not need what I said I need. What I really need is a way to read and manipulate data in the child process.

  7. #7
    Registered User
    Join Date
    Jun 2003
    Posts
    23
    I realize now that debugging is the solution to my problem.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. init adopts zombie process?
    By password636 in forum Linux Programming
    Replies: 4
    Last Post: 07-01-2009, 11:05 AM
  2. inter process communcation, parent - child
    By tallan in forum C Programming
    Replies: 5
    Last Post: 02-28-2009, 04:04 AM
  3. create a child process that creates a child process
    By cus in forum Linux Programming
    Replies: 9
    Last Post: 01-13-2009, 02:14 PM
  4. Replies: 3
    Last Post: 10-15-2008, 10:24 AM
  5. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 08:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21