Click here to Skip to main content
15,922,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Listing Thread Module Names and Base Addresses Pin
Abhishek Karnik14-Oct-05 11:09
Abhishek Karnik14-Oct-05 11:09 
QuestionPassing pointers Pin
Anonymous14-Oct-05 8:22
Anonymous14-Oct-05 8:22 
AnswerRe: Passing pointers Pin
Axter14-Oct-05 15:56
professionalAxter14-Oct-05 15:56 
QuestionFun with CPropertySheets/Pages Pin
Jader8914-Oct-05 8:03
Jader8914-Oct-05 8:03 
AnswerRe: Fun with CPropertySheets/Pages Pin
Jader8914-Oct-05 8:04
Jader8914-Oct-05 8:04 
AnswerRe: Fun with CPropertySheets/Pages Pin
Maximilien14-Oct-05 8:58
Maximilien14-Oct-05 8:58 
AnswerRe: Fun with CPropertySheets/Pages Pin
Roger Allen14-Oct-05 9:18
Roger Allen14-Oct-05 9:18 
GeneralRe: Fun with CPropertySheets/Pages Pin
Jader8914-Oct-05 10:28
Jader8914-Oct-05 10:28 
GeneralRe: Fun with CPropertySheets/Pages Pin
Maximilien15-Oct-05 9:07
Maximilien15-Oct-05 9:07 
QuestionHow to handle the ENTER key in the parent window... Pin
Ian Bowler14-Oct-05 7:45
Ian Bowler14-Oct-05 7:45 
AnswerRe: How to handle the ENTER key in the parent window... Pin
Mircea Puiu14-Oct-05 21:35
Mircea Puiu14-Oct-05 21:35 
GeneralRe: How to handle the ENTER key in the parent window... Pin
Ian Bowler15-Oct-05 11:22
Ian Bowler15-Oct-05 11:22 
QuestionHow to use ClearType with GDI+ Pin
MikeG200014-Oct-05 7:31
MikeG200014-Oct-05 7:31 
AnswerRe: How to use ClearType with GDI+ Pin
Mircea Puiu14-Oct-05 21:47
Mircea Puiu14-Oct-05 21:47 
QuestionModless Dialog Box Pin
BuckBrown14-Oct-05 7:26
BuckBrown14-Oct-05 7:26 
QuestionRe: Modless Dialog Box Pin
David Crow14-Oct-05 8:26
David Crow14-Oct-05 8:26 
AnswerRe: Modless Dialog Box Pin
BuckBrown14-Oct-05 8:48
BuckBrown14-Oct-05 8:48 
GeneralRe: Modless Dialog Box Pin
Maximilien14-Oct-05 9:04
Maximilien14-Oct-05 9:04 
GeneralRe: Modless Dialog Box Pin
John R. Shaw14-Oct-05 22:26
John R. Shaw14-Oct-05 22:26 
QuestionSetting record mixer properties inside app Pin
billiam90414-Oct-05 6:02
billiam90414-Oct-05 6:02 
QuestionCDHtmlDialog couldn't trap WM_CHAR Pin
Kene14-Oct-05 5:58
Kene14-Oct-05 5:58 
QuestionGet the number of bytes a process has written to disk Pin
Lord Bogy14-Oct-05 5:23
Lord Bogy14-Oct-05 5:23 
AnswerRe: Get the number of bytes a process has written to disk Pin
khan++15-Oct-05 0:06
khan++15-Oct-05 0:06 
GetProcessIoCounters(...) is the one to use:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getprocessiocounters.asp[^]

If you don't have the newer SDK, then do the following:
typedef struct _IO_COUNTERS
{
ULONGLONG ReadOperationCount;
ULONGLONG WriteOperationCount;
ULONGLONG OtherOperationCount;
ULONGLONG ReadTransferCount;
ULONGLONG WriteTransferCount;
ULONGLONG OtherTransferCount;
} IO_COUNTERS, *PIO_COUNTERS;

typedef BOOL (WINAPI* Func)(HANDLE, PIO_COUNTERS pio);

Func GetProc;
HMODULE hModule;
hModule = LoadLibrary("KERNEL32.DLL");
GetProc = (Func)GetProcAddress(hModule,"GetProcessIoCounters");
IO_COUNTERS pc;
BOOL b;
b = GetProc(GetCurrentProcess(),&pc);

Now pc will contain the information.
The second parameter for the function is the one you would want to change to the process you want to view. You can use EnumProcesses(...):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/enumprocesses.asp[^]


this is this.
QuestionC++ newbie question: how to rotate and read pixels? Pin
Anonymous14-Oct-05 4:05
Anonymous14-Oct-05 4:05 
AnswerRe: C++ newbie question: how to rotate and read pixels? Pin
The NULL Developer14-Oct-05 4:15
professionalThe NULL Developer14-Oct-05 4:15 

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.