Desktop Functions: Smart Device Functions:
|
GetConsoleProcessList (kernel32)
C# Signature:
[DllImport("kernel32.dll", SetLastError = true)] 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:To determine if the console will be destroyed when your application exits, check if (processCount < 2). For example:
public static bool IsFinalProcess() Check IsFinalProcess() as your application exits. If true, use Console.ReadKey(false); to prevent the window disappearing. Sample Code:
uint[] procIDs = new uint[64]; Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|