Thread: Windows Processes

  1. #1
    Alessio Stella
    Join Date
    May 2008
    Location
    Italy, Bologna
    Posts
    251

    Windows Processes

    Which are the better functions to be called under windows to create processes , test exit code, interprocess communication/syncronization?

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    use the API calls provided. check MSDN for the specific functions. It is nto usually beneficial to start additionl processes, just use threads.

  3. #3
    Alessio Stella
    Join Date
    May 2008
    Location
    Italy, Bologna
    Posts
    251
    Quote Originally Posted by abachler View Post
    use the API calls provided. check MSDN for the specific functions. It is nto usually beneficial to start additionl processes, just use threads.
    yes I agree
    usually it is just better to use threads
    But to execute an externally provided (and ready) .exe ..

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    MSDN is your reference for the Win32 API and associated MS libraries.
    http://msdn.microsoft.com/en-us/libr...84(VS.85).aspx

    CreateProcess() is the OS interface for process creation. IPC on windows includes shared memory, sockets, named pipes, mail slots, and few others.
    http://msdn.microsoft.com/en-us/libr...74(VS.85).aspx

    gg

  5. #5
    Alessio Stella
    Join Date
    May 2008
    Location
    Italy, Bologna
    Posts
    251
    Quote Originally Posted by Codeplug View Post
    MSDN is your reference for the Win32 API and associated MS libraries.
    http://msdn.microsoft.com/en-us/libr...84(VS.85).aspx

    CreateProcess() is the OS interface for process creation. IPC on windows includes shared memory, sockets, named pipes, mail slots, and few others.
    http://msdn.microsoft.com/en-us/libr...74(VS.85).aspx

    gg
    thank you
    quite enough stuff to study (-;

  6. #6
    Registered User OnionKnight's Avatar
    Join Date
    Jan 2005
    Posts
    555
    Sending messages, WM_COPYDATA in particular, can be used for IPC as well.

  7. #7
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Quote Originally Posted by mynickmynick View Post
    yes I agree
    usually it is just better to use threads
    But to execute an externally provided (and ready) .exe ..
    If you are doign software development, it really is necessary that the customer provide you witht eh existing source code when they want features added to an application. Using one program to run another 3rd party program is generalyl considered a kludge. There are API coimmands to handle it since many applications like auto-patchers require such functionality.

  8. #8
    Alessio Stella
    Join Date
    May 2008
    Location
    Italy, Bologna
    Posts
    251
    Quote Originally Posted by abachler View Post
    If you are doign software development, it really is necessary that the customer provide you witht eh existing source code when they want features added to an application. Using one program to run another 3rd party program is generalyl considered a kludge. There are API coimmands to handle it since many applications like auto-patchers require such functionality.
    yes I quite agree

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  2. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  4. linux and windows lookup host processes
    By Lynux-Penguin in forum Tech Board
    Replies: 0
    Last Post: 08-31-2003, 11:54 PM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM