encyclopegia.org

Windows.h

is a source code header file that Microsoft provides for the development of programs that access the Windows API (WinAPI) via C language.[src] It declares the WinAPI functions, associated data types and common macros.[src] 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).[src] Generally, for functions in a DLL named like , the program must be linked to a library named like .[src] For MinGW, the library name is like .[src]

is a source code header file that Microsoft provides for the development of programs that access the Windows API (WinAPI) via C language.[src] It declares the WinAPI functions, associated data types and common macros.[src] 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).[src] Generally, for functions in a DLL named like , the program must be linked to a library named like .[src] For MinGW, the library name is like .[src] ==Included header files== Including results in including various other header files that are included directly or indirectly by .[src] Many of these header files cannot be included on their own due to dependencies between the various header files.[src] Notable included header files: ===Standard C=== ===Basic=== ===Extra=== ===OLE and COM=== ==Macros== Several macros affect the definitions made by and the files it includes.[src] 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.[src] It is similar to the windows C runtime's _UNICODE macro.[src] RC_INVOKED defined when the resource compiler ( ) is in use instead of a C compiler.[src] WINVER used to enable features only available in newer operating systems.[src] Define it to 0x0501 for Windows XP, and 0x0600 for Windows Vista.[src] WIN32_LEAN_AND_MEAN used to reduce the size of the header files and speed up compilation.[src] Excludes things like cryptography, DDE, RPC, the Windows Shell and Winsock.[src] ==Other languages== Microsoft has plans to update the Windows API for modern C++ usage with their win32metadata project.[src] Currently, there is C++/WinRT and "Windows Implementation Library" (WIL) for doing this in modern C++.[src] Microsoft has also created bindings for other languages, including C# and Rust for calling the Win32 API.[src] ==See also== Windows API Microsoft Foundation Class Library C POSIX library C standard library C++ standard library ==References==[src]

24 sentences · 24 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Windows.h." encyclopegia.org, 2026, https://encyclopegia.org/wiki/windows-h. Accessed 28 November 2026.

Chicago

"Windows.h." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/windows-h.

APA

encyclopegia.org. (2026). Windows.h. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/windows-h

Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Windows Messenger service

stub · references available

Windows Communication Foundation

stub · references available

features new to Windows Vista

stub · references available

list of features removed in Windows Vista

stub · references available

Windows NT 3.5

stub · references available

Windows Essentials

stub · references available

Windows-1258

stub · references available

Windows Live

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1378950529 · 0.5 · snapshot enwiki-001378950529

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.