Memoire et process

Résolu
cs_got Messages postés 139 Date d'inscription lundi 7 janvier 2002 Statut Membre Dernière intervention 15 mars 2016 - 8 mars 2007 à 11:43
cs_got Messages postés 139 Date d'inscription lundi 7 janvier 2002 Statut Membre Dernière intervention 15 mars 2016 - 9 mars 2007 à 08:25
Bonjour,

comment connaitre la memoire utiliser par un processus en general et le process dans lequel l'instruction sera lancée en particulier.

Merci

2 réponses

drikce06 Messages postés 2236 Date d'inscription lundi 29 mai 2006 Statut Membre Dernière intervention 29 mai 2008 10
8 mars 2007 à 11:52
Salut regarde du côté de cette API:

Declare Function GetProcessMemoryInfo Lib "PSAPI.DLL" (ByVal hProcess As Long, ppsmemCounters As PROCESS_MEMORY_COUNTERS, ByVal cb As Long) As Long

· Process
 [in] Handle to the process.


· ppsmemCounters
[out] Pointer to the PROCESS_MEMORY_COUNTERS structure that receives information about the memory usage of the process.


· cb
[in] Specifies the size, in bytes, of the PROCESS_MEMORY_COUNTERS structure.

 Drikce 06

Si la réponse vous convient: Réponse acceptée. Si la réponse vous convient pas:
3
cs_got Messages postés 139 Date d'inscription lundi 7 janvier 2002 Statut Membre Dernière intervention 15 mars 2016
9 mars 2007 à 08:25
Merci ;-)
0
Rejoignez-nous