Reference: Alloc
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:59:14Z

#

| Chapter 19 Win32 Modules and Extensions |

## Alloc

    $cons->Alloc

Allocates a new console for the process. Returns `undef` on error or a nonzero value on success. A process cannot be associated with more than one console, so this method will fail if there is already an allocated console. Use `Free` to detach the process from the console, and then call `Alloc` to create a new console.

19.2 Win32::Console |  | Reference: Attr