AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

Process32First

Retrieves information about the first process encountered in a system snapshot.

VB4-32,5,6
Declare Function Process32First Lib "Kernel32" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long

VB.NET
System.Diagnostics.Process

Operating Systems Supported
Requires Windows 2000 or later; Requires Windows 95 or later

Library
Kernel32

Parameter Information
· hSnapshot
Handle of the snapshot returned from a previous call to the CreateToolhelp32Snapshot function.

· lppe
Address of a PROCESSENTRY32 structure.

Return Values
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.

Examples

Related Functions

VB.NET Example

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/