When you create a process with the CreateProcess function, you can specify that the process inherit handles to mutex, event, semaphore, or timer objects using the SECURITY_ATTRIBUTES structure. The handle inherited by the process has the same access to the object as the original handle. The inherited handle appears in the handle table of the created process, but you must communicate the handle value to the created process. You can do this by specifying the value as a command-line argument when you call CreateProcess. The created process then uses the GetCommandLine function to retrieve the command-line string and convert the handle argument into a usable handle. For more information, see Inheritance.
Build date: 12/18/2012