15,881,173 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by
N
aveen (Top 4 by date)
N
aveen
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.
N
aveen
1-Jun-11 22:04pm
View
Could you please elaborate?
N
aveen
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 :)
N
aveen
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>