#pragma import(_main_redirection)
This pragma must be defined when redirecting standard input, output and error streams at runtime.
#pragma import(_main_redirection);
#pragma import(
)
Compiler Reference:
Environment.