search for: lpprocessattributes

Displaying 1 result from an estimated 1 matches for "lpprocessattributes".

2009 Sep 02
1
Question on CreateProcess and handle inheritance
...39;s comment and patch. As far as I can tell, if you set the bInheritHandle in the SECURITY_ATTRIBUTES structure that''s passed to CreateProcess to true, it''s the same as calling SetHandleInformation(handle, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT) after the fact. CreateProcess: lpProcessAttributes [in, optional] A pointer to a SECURITY_ATTRIBUTES structure that determines whether the returned handle to the new process object can be inherited by child processes. If lpProcessAttributes is NULL, the handle cannot be inherited. SetHandleInformation: HANDLE_FLAG_INHERIT If this flag is...