Autor Beitrag
FD-83
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Mi 05.03.03 15:28 
Gibt es eine Funktion die mir die Anzahl der Threads zurückliefert die ein prozess besitzt? Ich benutze die psAPI. Also hole mir via OpenProcess ein Prozess-Handle und suche nun eine Funktion die mir die Anzahl zurückliefert...

PS: Wenns geht ohne Toolhelp Snapshot...

Gruss Frederik
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mi 05.03.03 15:54 
Entweder über ToolHelp oder aber native APIs.. was anderes ist mir nicht bekannt!

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
FD-83 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Mi 05.03.03 17:33 
ja die native API Funktion suche ich ja!!! :)

Ich find sie nur nich...Kennt zufällig wer den Namen der Funktion?

Gruss Frederik
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mi 05.03.03 17:49 
Nur so zur Information.. native APIs sind von Microsoft nicht dokumentierte APIs die vom System nur intern verwendet werden.

Deine gesuchte API ist ZwQuerySystemInformation mit SystemProcessesAndThreadsInformation.

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
FD-83 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Mi 05.03.03 18:11 
Hmm, da sie nicht dokumentiert sind wäre der Funktionssyntax schön... Oder wo kann ich den Nachschlagen?

Gruss Frederik
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Mi 05.03.03 22:21 
Titel: re
must du schauen hier .
grüße
MSCH
www.alexfedotov.com/samples/threads.asp