Desktop Functions: Smart Device Functions:
|
Process32First (kernel32)
C# Signature:
[DllImport("kernel32.dll")] User-Defined Types:None. Notes:None. Tips & Tricks:Please add some! Sample Code:[StructLayout(LayoutKind.Sequential)] public struct PROCESSENTRY32 { public uint dwSize; public uint cntUsage; public uint th32ProcessID; public IntPtr th32DefaultHeapID; public uint th32ModuleID; public uint cntThreads; public uint th32ParentProcessID; public int pcPriClassBase; public uint dwFlags; [MarshalAs(UnmanagedType.ByValTStr, SizeConst=256)] public string szExeFile; }; PROCESSENTRY32 info = new PROCESSENTRY32();
bool first = Process32First(Shot, ref info);
while(Process32Next((int)Shot, ref info) != 0) { // Do some with Info }; Alternative Managed API:Do you know one? Please contribute it! 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). |
|