... Reserved(1 To 3) As Byte
dwReserved(1 To 4) As Long
End Type
Private Type DRIVERSTATUS
bDriveError As Byte
bIDEStatus As Byte
bReserved(1 To 2) As Byte
dwReserved(1 To 2) As Long
End Type
Private Type SENDCMDOUTPARAMS
cBufferSize As Long
DStatus As DRIVERSTATUS
bBuffer(1 To 512) As Byte
End Type
Private Type PROCESSENTRY32 ...
Verfasst am: 02.05.2008, 15:57 Aufrufe: 757
Weiß jemand wie man in VB 6 die Prozessor Auslastung EINES Prozess herausfinden kann. Das gleiche mit der Speichernutzung. Weil mit der PROCESSENTRY32 struktur geht das nicht.....Gibts hierfür einen Anderen Apiaufruf? (Ich hol Prozessname ,PID und Anzahl der Thread mit CreateToolhelp32Snapshot (&H2)).Ich will damit dann eine Art erweiterten Taskmanager zusammenbauen...(Richtige Kategorie?! passt irgendwie in keine ri ...
Verfasst am: 08.08.2007, 06:53 Aufrufe: 1919
... =======================================================
Option Explicit
Private Declare Function CreateToolhelpSnapshot Lib "kernel32" Alias "CreateToolhelp32Snapshot" (ByVal dwFlags As Long, ByVal th32ProcessID As Long) As Long
Private Declare Function ProcessFirst Lib "kernel32" Alias "Process32First" (ByVal hSnapshot As Long, uProcess As PROCESSENTRY32 ...
Verfasst am: 03.08.2007, 07:54 Aufrufe: 1919 ... =======================================================
Option Explicit
Private Declare Function CreateToolhelpSnapshot Lib "kernel32" Alias "CreateToolhelp32Snapshot" (ByVal dwFlags As Long, ByVal th32ProcessID As Long) As Long
Private Declare Function ProcessFirst Lib "kernel32" Alias "Process32First" (ByVal hSnapshot As Long, uProcess As PROCESSENTRY32 ...
Verfasst am: 30.07.2007, 06:18 Aufrufe: 659
dll" (ByVal hFile As Long, ByVal lpBuffer As String, ByVal nNumberOfBytesToRead As Long, lpNumberOfBytesRead As Long, ByVal lpOverlapped As Any) As Long
Type PROCESSENTRY32
dwSize As Long
cntUsage As Long
th32ProcessID As Long
th32DefaultHeapID As Long
th32ModuleID As Long
cntThreads As Long
th32ParentProcessID As Long
pcPriClassBase As Long
dwFlags As Long
szE ...
Verfasst am: 24.07.2007, 22:29 Aufrufe: 440
[code]'Komponenten: 1 ListVIEW "List1" - 1 Timer "Timer1"
Private Declare Function CreateToolhelp32Snapshot Lib "kernel32" _
(ByVal lFlags As Long, ByVal lProcessID As Long) As Long
Private Declare Function ProcessFirst Lib "kernel32" Alias _
"Process32First" (ByVal hSnapShot As Long, uProcess _
As PROCESSENTRY32) As Long
Private De ...
[ Time: 0.2371s ][ Queries: 76 (0.1177s) ][ GZIP on - Debug on ]