The DeleteOnExit property specifies whether to delete virtual serial port automatically when your application exits (TRUE) or not (FALSE).

BOOL DeleteOnExit;