Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetDlgItem and CFormView Pin
ElizabethC27-Jan-03 7:05
ElizabethC27-Jan-03 7:05 
GeneralVC++ Pin
Ravi2827-Jan-03 5:46
Ravi2827-Jan-03 5:46 
GeneralRe: VC++ Pin
Mike Nordell27-Jan-03 9:24
Mike Nordell27-Jan-03 9:24 
GeneralRe: VC++ Pin
Ravi2829-Jan-03 3:26
Ravi2829-Jan-03 3:26 
GeneralRe: VC++ Pin
Ravi2829-Jan-03 3:26
Ravi2829-Jan-03 3:26 
Generalsize of physical/virtual memory used by a process - WindowsNT/2000 Pin
alma27-Jan-03 5:42
alma27-Jan-03 5:42 
GeneralRe: size of physical/virtual memory used by a process - WindowsNT/2000 Pin
Mike Nordell27-Jan-03 9:36
Mike Nordell27-Jan-03 9:36 
GeneralRe: size of physical/virtual memory used by a process - WindowsNT/2000 Pin
alma28-Jan-03 3:59
alma28-Jan-03 3:59 
I found the following solution:

<br />
DWORD dwProcessID = GetCurrentProcessId();<br />
HANDLE hProcessHandle = OpenProcess( PROCESS_QUERY_INFORMATION, FALSE, dwProcessID);<br />
<br />
PROCESS_MEMORY_COUNTERS p;<br />
GetProcessMemoryInfo(hProcessHandle , &p, sizeof(PROCESS_MEMORY_COUNTERS);<br />
logit("Using [PM - %d] [VM - %d]", p.WorkingSetSize, p.PagefileUsage);<br />


It needs 'psapi.h' (and 'psapi.lib' if you want to load 'psapi.dll' statically).


-Alma-
Generalremove & add a security group Pin
Member 13661827-Jan-03 5:23
Member 13661827-Jan-03 5:23 
GeneralOnInitialUpdate and SDI Pin
Haakon S.27-Jan-03 4:35
Haakon S.27-Jan-03 4:35 
GeneralRe: OnInitialUpdate and SDI Pin
HENDRIK R27-Jan-03 4:39
HENDRIK R27-Jan-03 4:39 
GeneralRe: OnInitialUpdate and SDI Pin
Haakon S.27-Jan-03 4:54
Haakon S.27-Jan-03 4:54 
GeneralRe: OnInitialUpdate and SDI Pin
HENDRIK R27-Jan-03 5:00
HENDRIK R27-Jan-03 5:00 
GeneralRe: OnInitialUpdate and SDI Pin
Haakon S.27-Jan-03 6:06
Haakon S.27-Jan-03 6:06 
GeneralRe: OnInitialUpdate and SDI Pin
PJ Arends27-Jan-03 6:57
professionalPJ Arends27-Jan-03 6:57 
Generalcrash on exit in release version with PostMessage!!!!! Help!!! Pin
ns27-Jan-03 4:33
ns27-Jan-03 4:33 
GeneralRe: crash on exit in release version with PostMessage!!!!! Help!!! Pin
Michael Dunn27-Jan-03 5:19
sitebuilderMichael Dunn27-Jan-03 5:19 
GeneralGosh!!!! MAny many mnay thanks!!!! Pin
ns27-Jan-03 5:25
ns27-Jan-03 5:25 
GeneralRe: Beat me to it Pin
Bill Gates Antimatter Particle27-Jan-03 7:34
Bill Gates Antimatter Particle27-Jan-03 7:34 
GeneralFind active Child Frame in MDI app Pin
Aaron Schaefer27-Jan-03 4:30
Aaron Schaefer27-Jan-03 4:30 
GeneralRe: Find active Child Frame in MDI app Pin
HENDRIK R27-Jan-03 4:41
HENDRIK R27-Jan-03 4:41 
GeneralTool Bars Pin
will138327-Jan-03 4:27
will138327-Jan-03 4:27 
GeneralRe: Tool Bars Pin
RobJones27-Jan-03 7:17
RobJones27-Jan-03 7:17 
GeneralRe: Tool Bars Pin
will138327-Jan-03 8:59
will138327-Jan-03 8:59 
GeneralRe: Tool Bars Pin
RobJones27-Jan-03 9:12
RobJones27-Jan-03 9:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.