CloseProgram()
Syntax
CloseProgram(Program)Description
Closes the connection with the given program (started with RunProgram()) and frees all related data.
Note: 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 command 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.
Supported OS
All