5 Commits (aec569efa48339e6e886b1420af6bb101699d33b)

Author SHA1 Message Date
Iain Patterson aec569efa4 Added delete_createfile_parameter().
Function to remove a value related to I/O redirection from the registry.
11 years ago
Iain Patterson 2f219930f4 Rotate output files.
The files specified by AppStdout and AppStderr can now be rotated prior
to launching the application.  An existing file will be renamed with a
new suffix based on its last write time, to millisecond precision.

Rotation is controlled independently of the CreateFile() arguments used
when opening the files for writing.  It is possible to configure
rotation regardless of whether existing files would be appended or
replaced.

Four new REG_DWORD entries control how rotation happens.

If AppRotateFiles is 0 or missing, rotation is disabled.

If AppRotateSeconds is non-zero, a file will not be rotated if its last
write time is less than the given number of seconds in the past.

If AppRotateBytes is non-zero, a file will not be rotated if it is
smaller than the given number of bytes.

64-bit file sizes can be handled by specifying a high order part in
AppRotateBytesHigh.

Thanks Doug Watson.
11 years ago
Iain Patterson 5b9e64a9ae Allow compiling as a Unicode application.
Overhaul the entire codebase so that it compiles and runs as either a
Unicode or ANSI application.
11 years ago
Iain Patterson c1bc67d138 Allow configuring output file truncation.
A new checkbox in the GUI allows specifying that stdout and stderr
should be truncated rather than appended.  The registry must still
be used to set different disposition for each or to control the
disposition of stdin.
11 years ago
Iain Patterson e1550b15c5 Fixed missing io.cpp and io.h.
The files were inadvertently not pushed along with the stream
redirection code.

Thanks Runner Mei.
12 years ago