Returns zero if successful; an error code on failure. If pFileInfo is NULL, the invalid parameter handler is invoked, as described in Parameter Validation. If execution is allowed to continue, this function returns EINVAL and sets errno to EINVAL.
The function gets the value of the _fileinfo global variable. This variable determines what information is passed to processes created with the spawn functions. For more information, see _spawn, _wspawn Functions.