GetConsoleProcessList (kernel32)
Last changed: -67.41.75.62

.
Summary
Fills an array of type uint with the process ID's of all processes attached to this console.

C# Signature:

    [DllImport("kernel32.dll", SetLastError = true)]
    static extern uint GetConsoleProcessList(
        uint[] ProcessList,
        uint ProcessCount
        );

VB Signature:

Declare Function GetConsoleProcessList Lib "kernel32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

Tips & Tricks:

Please add some!

Sample Code:

        uint[] procIDs = new uint[64];

        GetConsoleProcessList(procIDs, 64);

Documentation