tools/VsIdeHostAdapter/TargetAddIn/Common/NativeMethods.cs
/// <summary>
/// Retrieves information about the first process encountered in a system snapshot.
/// </summary>
/// <param name="hSnapshot"></param>
/// <param name="lppe"></param>
/// <returns>
/// TRUE if the first entry of the process list has been copied to the buffer or FALSE otherwise. 
/// The ERROR_NO_MORE_FILES error value is returned by the GetLastError function if no processes exist or 
/// the snapshot does not contain process information.
/// </returns>
Retrieves information about the first process encountered in a system snapshot.
Retrieves information about the first process encountered in a system snapshot .
[SuppressMessage("Microsoft.Usage", "CA2205:UseManagedEquivalentsOfWin32Api")]
        [DllImport(KERNEL32, SetLastError = true, CharSet = CharSet.Unicode)]
        [return:MarshalAs(UnmanagedType.Bool)]
        public static extern bool Process32First(
            IntPtr hSnapshot,           
            ref PROCESSENTRY32 lppe);
[ SuppressMessage ( " " , " " ) ] [ DllImport ( KERNEL32 , SetLastError = true , CharSet = CharSet . Unicode ) ] [ return : MarshalAs ( UnmanagedType . Bool ) ] public static extern bool Process32First ( IntPtr hSnapshot , ref PROCESSENTRY32 lppe ) ;
Retrieves information about the first process encountered in a system snapshot.
Retrieves information about the first process encountered in a system snapshot .
// HANDLE
TRUE if the first entry of the process list has been copied to the buffer or FALSE otherwise.
The ERROR_NO_MORE_FILES error value is returned by the GetLastError function if no processes exist or
the snapshot does not contain process information.
TRUE if the first entry of the process list has been copied to the buffer or FALSE otherwise . The ERROR_NO_MORE_FILES error value is returned by the GetLastError function if no processes exist or the snapshot does not contain process information .
hSnapshot
IntPtr
None
PROCESSENTRY32
ref
lppe
None