MSDN Community

Your hub for Windows development insights and contributions.

Windows API Code Samples

File I/O Operations

Learn how to perform basic file read, write, and manipulation using core Windows API functions like CreateFile, ReadFile, WriteFile, and CloseHandle.

C++ Win32 File System

Thread Management

Explore creating, managing, and synchronizing threads with functions such as CreateThread, WaitForSingleObject, and Critical Sections.

C++ Multithreading Concurrency

Registry Access

Demonstrates how to interact with the Windows Registry to read and write configuration data using RegOpenKeyEx, RegQueryValueEx, and RegSetValueEx.

C++ Registry Configuration

Window Creation and Message Handling

A fundamental sample showing how to create a basic window, register a window class, and handle Windows messages.

C++ GUI Win32 API

Networking Basics (Winsock)

Introduction to socket programming with Winsock API. Create simple TCP client and server examples.

C++ Networking Sockets

COM Component Interaction

Understand how to use Component Object Model (COM) to interact with Windows system components and third-party libraries.

C++ COM Interoperability