Possible - I'd suggested it a few months ago, but I wasn't sure. Possible better to make it explicit that the other parameters are set that way only to keep Windows happy? (equally, that could be a comment!). The only bit which definitely must be guarded is the STARTUPINFO stuff in the other block, as that's Windows-only.