Waits for a new command processor and closes the stream on the associated pipe.
Return value from the previous call to _popen.
Returns the exit status of the terminating command processor, or –1 if an error occurs. The format of the return value is the same as that for _cwait, except the low-order and high-order bytes are swapped. If stream is NULL, _pclose sets errno to EINVAL and returns -1.
For information about these and other error codes, see _doserrno, errno, _sys_errlist, and _sys_nerr.
The _pclose function looks up the process ID of the command processor (Cmd.exe) started by the associated _popen call, executes a _cwait call on the new command processor, and closes the stream on the associated pipe.
Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003
For more compatibility information, see Compatibility in the Introduction.
All versions of the C run-time libraries.
Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.