Method System.AllocConsole() Method AllocConsole int AllocConsole() Description Allocates a new console for the calling process. Note Only available on certain Windows systems. Returns 0 on success, non-zero otherwise.