Click here to Skip to main content
15,881,173 members

Comments by Naveen (Top 4 by date)

Naveen 27-Feb-12 21:49pm View    
Your current code is ok. But better improve it. First find the window, open the process and then do the for loop to read the process memory. Also remeber to close the handle returned by openprocess.

Now to get the exe modules base address and size, it better to use the module32first and module32next function. Good luck.
Naveen 1-Jun-11 22:04pm View    
Could you please elaborate?
Naveen 1-Jun-11 0:24am View    
Joined a new company and in here all the external mails and social networking sites are blocked. So back in codeproject and MSDN for time pass :)
Naveen 14-Dec-10 1:54am View    
Deleted
>>The system automatically enables calls to SetForegroundWindow if the user presses the ALT key

This is a new information for me. So I was trying this. I created one dialog based application.Put one button and in the button click handler i put one timer for 3 sec and in the WM_TIMER handler, I called SetForegroundWindow(). Now when this application is started, after i clicked the button and immidately brings another window to foreground and kept pressing ALT key in keyboard. But my window didnt came to foreground after 3 seconds. Any comment on that?

<pre lang="cs">void CDialogBasedDlg::OnBnClickedButton1()
{
SetTimer( 1, 3000, 0 );
}</pre>


<pre lang="cs">void CDialogBasedDlg::OnTimer(UINT_PTR nIDEvent)
{

SetForegroundWindow();

CDialogEx::OnTimer(nIDEvent);
}</pre>