Click here to Skip to main content
       

C / C++ / MFC

 
GeneralRe: porting my device driver 32 bit to windows 7 64 bit PinmemberClark Kent SuperCoder19-Nov-12 0:15 
GeneralRe: porting my device driver 32 bit to windows 7 64 bit Pinmembernavn199121-Nov-12 2:40 
GeneralRe: porting my device driver 32 bit to windows 7 64 bit PinmemberBilliousBob23-Nov-12 4:51 
AnswerRe: porting my device driver 32 bit to windows 7 64 bit PinmemberBilliousBob23-Nov-12 4:50 
QuestionMemory usage Pinmemberjohn563215-Nov-12 21:48 
AnswerRe: Memory usage PinmemberOrjan Westin15-Nov-12 23:23 
AnswerRe: Memory usage PinmemberDavidCrow16-Nov-12 2:27 
AnswerRe: Memory usage PinmemberRolf Kristensen16-Nov-12 3:30 
CString csMsg;
PROCESS_MEMORY_COUNTERS_EX procMemInfo = {0};
procMemInfo.cb = sizeof(procMemInfo);
if (GetProcessMemoryInfo(GetCurrentProcess(), (PROCESS_MEMORY_COUNTERS*)&procMemInfo, sizeof(procMemInfo)))
{
	// Log how much physical and total memory we are using
	// - Win7 (and newer) reports commit-size in this member
	if (procMemInfo.PagefileUsage==0)
		procMemInfo.PagefileUsage = procMemInfo.PrivateUsage;
	ULONG ulWorkingSetSize = (ULONG)(procMemInfo.WorkingSetSize / 1024 / 1024);
	ULONG ulPagefileUsage = (ULONG)(procMemInfo.PagefileUsage / 1024 / 1024);
	CString csProcessMemInfo;
	csProcessMemInfo.Format(_T("WorkingSetSize=%lu MBytes, CommitChargeSize=%lu MBytes"), ulWorkingSetSize, ulPagefileUsage);
	csMsg += csProcessMemInfo;
}
MEMORYSTATUSEX memStatus = {0};
memStatus.dwLength = sizeof(memStatus);
if (GlobalMemoryStatusEx(&memStatus))
{
	// Log how much address space we are using (detect memory fragmentation)
	ULONG ulUsedVirtual = (ULONG)((memStatus.ullTotalVirtual-memStatus.ullAvailVirtual) / 1024 / 1024);
	ULONG ulAvailVirtual = (ULONG)(memStatus.ullAvailVirtual / 1024 / 1024);
	CString csMemStatus;
	csMemStatus.Format(_T("UsedVirtual=%lu MBytes, AvailableVirtual=%lu MBytes"), ulUsedVirtual, ulAvailVirtual);
	csMsg += csMemStatus;
}

AnswerRe: Memory usage PinmemberArun S J18-Nov-12 18:13 
Questioninterp project in 64bit system PinmemberDang Vu Tuan15-Nov-12 21:46 
AnswerRe: interp project in 64bit system PinmvpRichard MacCutchan15-Nov-12 23:57 
QuestionSql server Database BackUp Pinmembershibashish mohanty15-Nov-12 20:06 
AnswerRe: Sql server Database BackUp PinmvpRichard MacCutchan15-Nov-12 23:55 
AnswerRe: Sql server Database BackUp PinmemberAndré Kraak16-Nov-12 0:48 
QuestionNeed help compiling PinmemberxLeonx15-Nov-12 8:51 
AnswerRe: Need help compiling Pinmemberjeron115-Nov-12 9:51 
QuestionRe: Need help compiling PinmemberDavidCrow15-Nov-12 10:34 
QuestionRe: Need help compiling PinmvpCPallini15-Nov-12 23:09 
AnswerRe: Need help compiling PinmemberxLeonx18-Nov-12 9:35 
AnswerRe: Need help compiling PinmemberStephen Hewitt16-Nov-12 22:36 
GeneralRe: Need help compiling PinmemberxLeonx18-Nov-12 9:31 
GeneralRe: Need help compiling PinmemberxLeonx18-Nov-12 9:33 
AnswerRe: Need help compiling PinmemberArun S J18-Nov-12 18:15 
GeneralRe: Need help compiling PinmemberxLeonx23-Nov-12 8:20 
GeneralRe: Need help compiling PinmemberArun S J25-Nov-12 17:37 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 29 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid