Tag Archives: C
C Assert and Wrapping Macros in Do/While Loops
Building a Better Assert Macro and Why You Should Be Wrapping Your Macros in Do/While Loops
Limiting an Application to a Single Instance with Named Events
How to Limit an Application to a Single Instance per Session or System-wide with Named Events.
Simple Reader-Writer Lock in C on Win32
A basic reader-writer lock for thread synchronization in native C on Win32.
Creating Temporary Files on Win32 in C – Part 2
Creating a temporary file on Windows in C using GetTempFileName, CreateFile, and FILE_FLAG_DELETE_ON_CLOSE
Creating Temporary Files on Win32 in C – Part 1
Discussing the numerous ways to create a temporary file on Windows in C and the pros & cons of each.
Signal a Windows Application to Terminate from Another Process
Signaling one Windows Process to terminate from another process via a named event object.
Silently Terminate on Abort/Unhandled Exception in Windows
Preventing unwanted end-user notification dialogs when your Windows application unexpectedly terminates.
Capturing Windows Power Events in a Console Application
Capturing Windows Power Events in a Console Application On Windows XP and Later Using a Hidden Window.
Targeting Windows 2000/XP RTM/XP SP1 from Visual Studio 2010
Setting the Platform Toolset to target a native C/C++ application to Windows 2000/XP RTM/XP SP1 with Visual Studio 2010.
Suppress Unreferenced Parameter/Variable Warnings in Windows C/C++ Applications
Suppressing unreferenced parameter/variable warnings in Windows C/C++ Applications with macros from