Click here to Skip to main content
15,887,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: C++ newbie question: how to rotate and read pixels? Pin
Anonymous14-Oct-05 4:47
Anonymous14-Oct-05 4:47 
GeneralRe: C++ newbie question: how to rotate and read pixels? Pin
Chris Losinger14-Oct-05 5:21
professionalChris Losinger14-Oct-05 5:21 
GeneralRe: C++ newbie question: how to rotate and read pixels? Pin
Anonymous14-Oct-05 6:07
Anonymous14-Oct-05 6:07 
GeneralRe: C++ newbie question: how to rotate and read pixels? Pin
Chris Losinger14-Oct-05 7:31
professionalChris Losinger14-Oct-05 7:31 
AnswerRe: C++ newbie question: how to rotate and read pixels? Pin
Ted Ferenc14-Oct-05 6:32
Ted Ferenc14-Oct-05 6:32 
QuestionHow to set a CString as dwData of a TBBUTTON? Pin
Tcpip200514-Oct-05 2:28
Tcpip200514-Oct-05 2:28 
QuestionRe: How to set a CString as dwData of a TBBUTTON? Pin
David Crow14-Oct-05 3:03
David Crow14-Oct-05 3:03 
AnswerRe: How to set a CString as dwData of a TBBUTTON? Pin
begray14-Oct-05 5:36
begray14-Oct-05 5:36 
AnswerRe: How to set a CString as dwData of a TBBUTTON? Pin
Arman S.14-Oct-05 9:56
Arman S.14-Oct-05 9:56 
AnswerRe: How to set a CString as dwData of a TBBUTTON? Pin
Arman S.14-Oct-05 10:02
Arman S.14-Oct-05 10:02 
GeneralRe: How to set a CString as dwData of a TBBUTTON? Pin
Tcpip200514-Oct-05 17:39
Tcpip200514-Oct-05 17:39 
QuestionHow to update the View frm other class not from Doc class? Pin
lavate malllik14-Oct-05 2:23
lavate malllik14-Oct-05 2:23 
AnswerRe: How to update the View frm other class not from Doc class? Pin
David Crow14-Oct-05 3:06
David Crow14-Oct-05 3:06 
AnswerRe: How to update the View frm other class not from Doc class? Pin
Prakash Nadar14-Oct-05 5:44
Prakash Nadar14-Oct-05 5:44 
AnswerRe: How to update the View frm other class not from Doc class? Pin
Arman S.14-Oct-05 9:44
Arman S.14-Oct-05 9:44 

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.