This series' main purpose is to fix the handles' attributes of standard I/O handles in CreateProcess. Needed behavior in CreateProcess is implemented by supporting the DUPLICATE_SAME_ATTRIBUTES option in NtDuplicateObject() and DuplicateHandle(). This option is not documented in SDK, but is in DDK. Manifest constant has been added to DDK header (maybe now Wine's DUPLICATE_MAKE_GLOBAL could be moved here to).
-- v2: server: Preserve handle flags when inheriting a std handle. server: Implement support for DUPLICATE_SAME_ATTRIBUTES in DuplicateHandle(). kernel32/tests: Test DUPLICATE_SAME_ATTRIBUTES flag in DuplicateHandle(). kernel32: Added tests about std handle flags inheritance.