There is a partially documented feature in the Microsoft C/C++ runtime libraries that allows you to run code before the main function (main, WinMain or DllMain) is called, and after it returns.
Latest Application Control Articles - Page 3
CKeystrokeEngine'�Sending Keystrokes to a Selected Window
Send keystrokes to the active window or to a selected window.
Forcing Only One Instance of an Application to Run at a Time in Visual C++
Another suggestion for forcing only one instance of an application to run at a time.
Stopping the Second Instance of Your Application
If you ever need to have only one instance of an application active, you might be interested in using this class. This class enables you to stop running a second instance of an application.
SS_Log, SS_Log_Window, SS_Log_AddIn
This is a set of small projects (all working together) that can ease creating a log of your program's code path at run-time.
Limiting Applications to a Single Instance
Standard concept with a twist ; in this version if the app is running it is brought to the foreground and passed any command-line arguments
Latest Developer Videos
More...Latest CodeGuru Developer Columns
MFC Integration with the Windows Transactional File System (TxF)
The Transactional File System (TxF), which allows access to an NTFS file system to be conducted in a transacted manner through extensions to the Windows SDK API. MFC 10, has been extended to support TxF and related technologies. This support allows existing MFC applications to be easily extended to support kernel transactions.
.NET Framework: Collections and Generics
The original release of the .NET Framework included collections as .NET was introduced to the Microsoft programming world. The .NET Framework 2.0 introduced generics to complement the System.Collections namespace and provide a more efficient and well performing option. Read on to learn more...

How to use Visual Studio 2012 to Download Images from Websites
Learn how to use a for loop to loop through all of the images found on a web page and save them via the DownloadFile method of the WebClient object.

SOLID Principles in C# - An Overview
SOLID principles form the base for writing good and clean object oriented code in C#. Learn about the S.O.L.I.D principles and explore C# coding samples for each.
