[DllImport("Kernel32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.SafeHandle)] public static extern SafeSnapshotHandle CreateToolhelp32Snapshot( SnapshotFlags dwFlags, uint th32ProcessID );
Microsoft documentation: Link
Last updated 1 year ago