Click here to Skip to main content
15,561,125 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: porting my device driver 32 bit to windows 7 64 bit Pin
Software_Developer19-Nov-12 1:15
Software_Developer19-Nov-12 1:15 
GeneralRe: porting my device driver 32 bit to windows 7 64 bit Pin
navn199121-Nov-12 3:40
navn199121-Nov-12 3:40 
GeneralRe: porting my device driver 32 bit to windows 7 64 bit Pin
WebMaster23-Nov-12 5:51
WebMaster23-Nov-12 5:51 
AnswerRe: porting my device driver 32 bit to windows 7 64 bit Pin
WebMaster23-Nov-12 5:50
WebMaster23-Nov-12 5:50 
QuestionMemory usage Pin
john563215-Nov-12 22:48
john563215-Nov-12 22:48 
AnswerRe: Memory usage Pin
Orjan Westin16-Nov-12 0:23
professionalOrjan Westin16-Nov-12 0:23 
AnswerRe: Memory usage Pin
David Crow16-Nov-12 3:27
David Crow16-Nov-12 3:27 
AnswerRe: Memory usage Pin
Rolf Kristensen16-Nov-12 4:30
Rolf Kristensen16-Nov-12 4:30 
C++
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 Pin
Arun S J18-Nov-12 19:13
Arun S J18-Nov-12 19:13 
Questioninterp project in 64bit system Pin
Dang Vu Tuan15-Nov-12 22:46
Dang Vu Tuan15-Nov-12 22:46 
AnswerRe: interp project in 64bit system Pin
Richard MacCutchan16-Nov-12 0:57
mveRichard MacCutchan16-Nov-12 0:57 
QuestionSql server Database BackUp Pin
shibashish mohanty15-Nov-12 21:06
shibashish mohanty15-Nov-12 21:06 
AnswerRe: Sql server Database BackUp Pin
Richard MacCutchan16-Nov-12 0:55
mveRichard MacCutchan16-Nov-12 0:55 
AnswerRe: Sql server Database BackUp Pin
André Kraak16-Nov-12 1:48
André Kraak16-Nov-12 1:48 
QuestionNeed help compiling Pin
xLeonx15-Nov-12 9:51
xLeonx15-Nov-12 9:51 
AnswerRe: Need help compiling Pin
jeron115-Nov-12 10:51
jeron115-Nov-12 10:51 
QuestionRe: Need help compiling Pin
David Crow15-Nov-12 11:34
David Crow15-Nov-12 11:34 
QuestionRe: Need help compiling Pin
CPallini16-Nov-12 0:09
mveCPallini16-Nov-12 0:09 
AnswerRe: Need help compiling Pin
xLeonx18-Nov-12 10:35
xLeonx18-Nov-12 10:35 
AnswerRe: Need help compiling Pin
Stephen Hewitt16-Nov-12 23:36
Stephen Hewitt16-Nov-12 23:36 
GeneralRe: Need help compiling Pin
xLeonx18-Nov-12 10:31
xLeonx18-Nov-12 10:31 
GeneralRe: Need help compiling Pin
xLeonx18-Nov-12 10:33
xLeonx18-Nov-12 10:33 
AnswerRe: Need help compiling Pin
Arun S J18-Nov-12 19:15
Arun S J18-Nov-12 19:15 
GeneralRe: Need help compiling Pin
xLeonx23-Nov-12 9:20
xLeonx23-Nov-12 9:20 
GeneralRe: Need help compiling Pin
Arun S J25-Nov-12 18:37
Arun S J25-Nov-12 18:37 

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.