Browse - programming tips - win32 set inherit fileDate: 2010may10 OS: Windows Q. How can I set whether a file handle is inherits by a child process? A. Use this function: BOOL SetInherit(HANDLE h, const BOOL bInherit) { return SetHandleInformation(h, HANDLE_FLAG_INHERIT, bInherit ? HANDLE_FLAG_INHERIT : 0); }
Add a commentSign in to add a comment | Advertisements:
|