Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.01.29;
Скачать: CL | DM;

Вниз

загрузка памяти процессом   Найти похожие ветки 

 
Davey   (2003-11-10 15:14) [0]

Господа программисты, помогите мне найти ответ на вопрос, т.к. нигде не могу его найти: как узнать загрузку памяти процессом зная его имя или PID в 9х (как делает TaskManager в ХР)? Если можно помогите исходничком. Зараннее всем признателен!


 
mrcat   (2003-11-10 19:18) [1]

GetProcessMemoryInfo :)


 
Demetrius2003   (2003-11-11 23:14) [2]

>mrcat ©

Это ты где такую нашёл(в смысле в какой Длл)????
Или сам придумал


 
Demetrius2003   (2003-11-11 23:19) [3]

>mrcat ©

Сорьки, нашёл
GetProcessMemoryInfo

The GetProcessMemoryInfo function retrieves information about the memory usage of the specified process in the PROCESS_MEMORY_COUNTERS structure.

BOOL GetProcessMemoryInfo(
HANDLE Process,
PPROCESS_MEMORY_COUNTERS ppsmemCounters,
DWORD cb
);

Parameters
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] Size of the PROCESS_MEMORY_COUNTERS structure, in bytes.
Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Example Code
For an example, see Collecting Memory Usage Information for a Process.

Requirements
Client: Included in Windows XP, Windows 2000 Professional, and Windows NT Workstation 4.0.
Server: Included in Windows Server 2003, Windows 2000 Server, and Windows NT Server 4.0.
Header: Declared in Psapi.h.
Library: Use Psapi.lib.



Страницы: 1 вся ветка

Текущий архив: 2004.01.29;
Скачать: CL | DM;

Наверх




Память: 0.45 MB
Время: 0.007 c
1-93499
pASkdua
2004-01-16 18:14
2004.01.29
Как напечатат все содержимое SrcollBox-а?


1-93425
Gid
2004-01-16 16:47
2004.01.29
Добавление собственного расширения в контекстное меню проводника


6-93613
strong
2003-11-24 13:57
2004.01.29
проблема com/ip


6-93619
TUser
2003-11-25 10:24
2004.01.29
WebBr


1-93515
Looo
2004-01-18 20:00
2004.01.29
Повторяющиеся действия





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский