{
  "id": "enwiki-001378950529",
  "slug": "windows-h",
  "title": "Windows.h",
  "qid": "",
  "lead": "is a source code header file that Microsoft provides for the development of programs that access the Windows API (WinAPI) via C language. It declares the WinAPI functions, associated data types and common macros. Access to WinAPI can be enabled for a C or C++ program by including it into a source file: #include Also, the executable must be linked to each static library that either contains the function code or more commonly defines runtime, dynamic linking to a system dynamic link library (DLL). Generally, for functions in a DLL named like , the program must be linked to a library named like . For MinGW, the library name is like .",
  "body": "is a source code header file that Microsoft provides for the development of programs that access the Windows API (WinAPI) via C language. It declares the WinAPI functions, associated data types and common macros. Access to WinAPI can be enabled for a C or C++ program by including it into a source file: include Also, the executable must be linked to each static library that either contains the function code or more commonly defines runtime, dynamic linking to a system dynamic link library (DLL). Generally, for functions in a DLL named like , the program must be linked to a library named like . For MinGW, the library name is like . ==Included header files== Including results in including various other header files that are included directly or indirectly by . Many of these header files cannot be included on their own due to dependencies between the various header files. Notable included header files: ===Standard C=== ===Basic=== ===Extra=== ===OLE and COM=== ==Macros== Several macros affect the definitions made by and the files it includes. UNICODE ; when defined, this causes the generic text datatype TCHAR to be a synonym of instead of , and all type-generic API functions and messages that work with text will be defined to the -W versions instead of the -A versions. It is similar to the windows C runtime's _UNICODE macro. RC_INVOKED defined when the resource compiler ( ) is in use instead of a C compiler. WINVER used to enable features only available in newer operating systems. Define it to 0x0501 for Windows XP, and 0x0600 for Windows Vista. WIN32_LEAN_AND_MEAN used to reduce the size of the header files and speed up compilation. Excludes things like cryptography, DDE, RPC, the Windows Shell and Winsock. ==Other languages== Microsoft has plans to update the Windows API for modern C++ usage with their win32metadata project. Currently, there is C++/WinRT and \"Windows Implementation Library\" (WIL) for doing this in modern C++. Microsoft has also created bindings for other languages, including C# and Rust for calling the Win32 API. ==See also== Windows API Microsoft Foundation Class Library C POSIX library C standard library C++ standard library ==References==",
  "categories": [
    "100997943",
    "22930693",
    "23118434",
    "23603337",
    "24043274",
    "31621131",
    "31699076",
    "63946149",
    "82546463"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1378950529",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1791331782.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001378950529",
    "type": "webpage",
    "title": "Windows.h",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/windows-h",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          18
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          18
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001378950529",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1378950529",
    "note": "Immutable snapshot enwiki-001378950529"
  }
}