public static extern uint GetProcessId(
     SafeProcessHandle Process);
Example #2
0
 /// <summary>
 /// Get the process id for the given process handle.
 /// </summary>
 public static uint GetProcessId(SafeProcessHandle processHandle)
 {
     return(Imports.GetProcessId(processHandle));
 }
 public static extern bool K32GetProcessMemoryInfo(
     SafeProcessHandle process,
     out PROCESS_MEMORY_COUNTERS_EX ppsmemCounters,
     uint cb);