MSDN Community

Your gateway to Windows development and community resources.

Windows Documentation Hub

Explore comprehensive documentation, guides, and technical articles for Windows development. Whether you're building desktop applications, UWP apps, or leveraging Windows features, you'll find the resources you need here.

Getting Started

Advanced Topics

Tools and Frameworks

Code Snippets

Example: Displaying a Message Box (Win32 API)


#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
    MessageBox(
        NULL,                  // Owner window handle.
        TEXT("Hello, Windows!"), // The text message.
        TEXT("Message Box Example"), // The window title.
        MB_OK | MB_ICONINFORMATION // Style flags.
    );
    return 0;
}