CloseProgram()

语法

CloseProgram(Program)
概要
Closes the connection with the given program (which was started with RunProgram()) and frees all related data.

参数

Program The program to close. It must have been started before with RunProgram().

返回值

无.

Remarks

This does not terminate the program, it only closes the connection with it. To terminate the program, call KillProgram() first. Also if the program terminated normally, this function must still be called to properly release all data.

If the program was started with the #PB_Program_Write flag, CloseProgram() will cause the program to receive an EOF (end of file) on its standard input. This condition can also be produced without directly closing the connection to the program by calling WriteProgramData() with the special #PB_Program_Eof value.

参阅

KillProgram(), RunProgram()

已支持操作系统

所有

<- AvailableProgramOutput() - Process Index - CountProgramParameters() ->