<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-os vector-sticky-header-enabled" lang="en" dir="ltr"><head>
    <meta charset="UTF-8">
    <title>Windows.h</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/png" href="./_res_/favicon.png">
    <link rel="canonical" href="https://en.wikipedia.org/wiki/Windows.h"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.pygments.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
    <meta name="ResourceLoaderDynamicStyles" content="">
    
    <link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
    <link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
    <link rel="stylesheet" type="text/css" href="./_res_/footer.css">
    <link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
  </head>
  <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Windows_h rootpage-Windows_h skin-vector-2022 action-view">
    <div class="mw-page-container">
      <div class="mw-page-container-inner">
        <div class="mw-content-container">
          <main id="content" class="mw-body">
            <header class="mw-body-header vector-page-titlebar">
              <h1 id="firstHeading" class="firstHeading mw-first-heading">windows.h</h1>
            </header>
            <a id="top"></a>
            <div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
              <div id="contentSub">
                <div id="mw-content-subtitle"></div>
              </div>
              <div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1305433154">
/* start https://en.wikipedia.org/ */


.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}


/* end   https://en.wikipedia.org/ */
</style>
<p><b><style data-mw-deduplicate="TemplateStyles:r886049734">
/* start https://en.wikipedia.org/ */


.mw-parser-output .monospaced{font-family:monospace,monospace}


/* end   https://en.wikipedia.org/ */
</style><span class="monospaced">Windows.h</span></b> is a <a href="Source_code" title="Source code">source code</a> header file that <a href="Microsoft" title="Microsoft">Microsoft</a> provides for the development of <a href="Computer_program" title="Computer program">programs</a> that access the <a href="Windows_API" title="Windows API">Windows API</a> (WinAPI) via <a href="C_(programming_language)" title="C (programming language)">C language</a>. It declares the WinAPI functions, associated data types and common macros.
</p><p>Access to WinAPI can be enabled for a C or C++ program by <a href="Include_directive" title="Include directive">including</a> it into a source file:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span></span><span class="c1">// in C:</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;Windows.h&gt;</span>

<span class="c1">// in C++:</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;Windows.h&gt;</span>
</pre></div>
<p>Also, the executable must be linked to each <a href="Static_library" title="Static library">static library</a> that either contains the function code or more commonly defines <a href="Dynamic_loading" title="Dynamic loading">runtime, dynamic linking</a> to a system <a href="Dynamic_link_library" class="mw-redirect" title="Dynamic link library">dynamic link library</a> (DLL). Generally, for functions in a DLL named like <span class="monospaced">Abc.dll</span>, the program must be linked to a library named like <span class="monospaced">Abc.lib</span>. For <a href="MinGW" title="MinGW">MinGW</a>, the library name is like <span class="monospaced">libAbc.dll.a</span>.
</p>

<div class="mw-heading mw-heading2"><h2 id="Included_header_files">Included header files</h2></div>
<p>Including <span class="monospaced">Windows.h</span> results in including various other header files that are included directly or indirectly by <span class="monospaced">Windows.h</span>. Many of these header files cannot be included on their own due to dependencies between the various header files.
</p><p>Notable included header files:
</p>
<div class="mw-heading mw-heading3"><h3 id="Standard_C">Standard C</h3></div>
<table class="wikitable sortable">

<tbody><tr>
<th>Name</th>
<th>Description
</th></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;ctype.h&gt;</code></td>
<td><a href="C_character_classification" title="C character classification">character classification</a>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;stdarg.h&gt;</code></td>
<td><a href="Stdarg.h" title="Stdarg.h">variable-argument function support</a>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;string.h&gt;</code></td>
<td><a href="C_string_handling" title="C string handling">string</a> and buffer manipulation
</td></tr></tbody></table>
<div class="mw-heading mw-heading3"><h3 id="Basic">Basic</h3></div>
<table class="wikitable sortable">

<tbody><tr>
<th>Name</th>
<th>Description
</th></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;basetsd.h&gt;</code></td>
<td>various types<sup id="cite_ref-windatatypes_1-0" class="reference"><a href="#cite_note-windatatypes-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;guiddef.h&gt;</code></td>
<td>the <a href="GUID" class="mw-redirect" title="GUID"><span class="monospaced">GUID</span></a><sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;imm.h&gt;</code></td>
<td><a href="Input_Method_Editor" class="mw-redirect" title="Input Method Editor">Input Method Editor</a> (IME)
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winbase.h&gt;</code></td>
<td><a href="Kernel32.dll" class="mw-redirect" title="Kernel32.dll">kernel32.dll</a>: kernel services; advapi32.dll: kernel services (e.g. <code>CreateProcessAsUser()</code> function), access control (e.g. <code>AdjustTokenGroups()</code> function).
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;wincon.h&gt;</code></td>
<td><a href="Win32_console" class="mw-redirect" title="Win32 console">console</a> services
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;windef.h&gt;</code></td>
<td>various macros and types
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winerror.h&gt;</code></td>
<td>error codes<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;wingdi.h&gt;</code></td>
<td><a href="Graphics_Device_Interface" title="Graphics Device Interface">Graphics Device Interface</a> (GDI)<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winnetwk.h&gt;</code></td>
<td>Windows Networking (WNet)<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winnls.h&gt;</code></td>
<td>Native Language Support (NLS)
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winnt.h&gt;</code></td>
<td>various macros and types (for <a href="Windows_NT" title="Windows NT">Windows NT</a>)<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winreg.h&gt;</code></td>
<td><a href="Windows_registry" class="mw-redirect" title="Windows registry">Windows registry</a><sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winsvc.h&gt;</code></td>
<td><a href="Windows_service" title="Windows service">Windows services</a> and the <a href="Service_Control_Manager" title="Service Control Manager">Service Control Manager</a> (SCM)
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winuser.h&gt;</code></td>
<td>Calls on <span class="monospaced"><a href="User32.dll" class="mw-redirect" title="User32.dll">user32.dll</a></span> for user services, inline resource macro (e.g. <code>MAKEINTRESOURCE</code> macro<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup>), inline dialog macro(e.g. DialogBox function<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup>).<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winver.h&gt;</code></td>
<td>version information<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup>
</td></tr></tbody></table>
<div class="mw-heading mw-heading3"><h3 id="Extra">Extra</h3></div>
<table class="wikitable sortable">

<tbody><tr>
<th>Name</th>
<th>Description
</th></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;cderr.h&gt;</code></td>
<td><code>CommDlgExtendedError</code> function error codes
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;commldg.h&gt;</code></td>
<td>Common Dialog Boxes
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;dde.h&gt;</code></td>
<td><a href="Dynamic_Data_Exchange" title="Dynamic Data Exchange">DDE</a> (Dynamic Data Exchange)
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;ddeml.h&gt;</code></td>
<td>DDE Management Library
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;dlgs.h&gt;</code></td>
<td>various constants for Common Dialog Boxes
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;lzexpand.h&gt;</code></td>
<td><a href="Lempel-Ziv" class="mw-redirect" title="Lempel-Ziv">LZ</a> (Lempel-Ziv) compression/decompression
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;mmsystem.h&gt;</code></td>
<td>Windows Multimedia
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;nb30.h&gt;</code></td>
<td><a href="NetBIOS" title="NetBIOS">NetBIOS</a>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;rpc.h&gt;</code></td>
<td><a href="Remote_Procedure_Call" class="mw-redirect" title="Remote Procedure Call">RPC</a> (Remote procedure call)
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;shellapi.h&gt;</code></td>
<td><a href="Windows_Shell" class="mw-redirect" title="Windows Shell">Windows Shell</a> API
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;wincrypt.h&gt;</code></td>
<td><a href="Cryptographic_API" class="mw-redirect" title="Cryptographic API">Cryptographic API</a>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winperf.h&gt;</code></td>
<td>Performance monitoring
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winresrc.h&gt;</code></td>
<td>used in <a href="Resource_(Windows)" title="Resource (Windows)">resources</a>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winsock.h&gt;</code></td>
<td><a href="Winsock" title="Winsock">Winsock</a> (Windows Sockets), version 1.1
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winspool.h&gt;</code></td>
<td><a href="Print_spooler" class="mw-redirect" title="Print spooler">Print Spooler</a>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;winbgim.h&gt;</code></td>
<td>Standard graphics library
</td></tr></tbody></table>
<div class="mw-heading mw-heading3"><h3 id="OLE_and_COM">OLE and COM</h3></div>
<table class="wikitable sortable">

<tbody><tr>
<th>Name</th>
<th>Description
</th></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;ole2.h&gt;</code></td>
<td><a href="Object_Linking_and_Embedding" title="Object Linking and Embedding">OLE</a> (Object Linking and Embedding)
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;objbase.h&gt;</code></td>
<td><a href="Component_Object_Model" title="Component Object Model">COM</a> (Component Object Model)
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;oleauto.h&gt;</code></td>
<td><a href="OLE_Automation" title="OLE Automation">OLE Automation</a>
</td></tr>
<tr>
<td><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;oletlid.h&gt;</code></td>
<td>various <a href="GUID" class="mw-redirect" title="GUID">GUID</a> definitions
</td></tr></tbody></table>
<div class="mw-heading mw-heading2"><h2 id="Macros">Macros</h2></div>
<p>Several macros affect the definitions made by <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&lt;windows.h&gt;</code> and the files it includes.
</p>
<ul><li><code>UNICODE</code>; when defined, this causes the generic text datatype <code>TCHAR</code> to be a synonym of <a href="Wide_character" title="Wide character"><span class="monospaced">WCHAR</span></a> instead of <a href="Character_(computing)" title="Character (computing)"><span class="monospaced">CHAR</span></a>,<sup id="cite_ref-windatatypes_1-1" class="reference"><a href="#cite_note-windatatypes-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> 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 <code>_UNICODE</code> macro.</li>
<li><code>RC_INVOKED</code> defined when the <a href="Resource_(Windows)" title="Resource (Windows)">resource</a> compiler (<span class="monospaced">RC.EXE</span>) is in use instead of a C compiler.</li>
<li><code>WINVER</code> used to enable features only available in newer operating systems. Define it to <code>0x0501</code> for <a href="Windows_XP" title="Windows XP">Windows XP</a>, and <code>0x0600</code> for <a href="Windows_Vista" title="Windows Vista">Windows Vista</a>.</li>
<li><code>WIN32_LEAN_AND_MEAN</code> used to reduce the size of the header files and speed up compilation. Excludes things like <a href="Cryptographic_API" class="mw-redirect" title="Cryptographic API">cryptography</a>, <a href="Dynamic_Data_Exchange" title="Dynamic Data Exchange">DDE</a>, <a href="Remote_procedure_call" title="Remote procedure call">RPC</a>, the <a href="Windows_Shell" class="mw-redirect" title="Windows Shell">Windows Shell</a> and <a href="Windows_Sockets" class="mw-redirect" title="Windows Sockets">Winsock</a>.</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Other_languages">Other languages</h2></div>
<p>Microsoft has plans to update the Windows API for modern C++ usage with their <code>win32metadata</code> project.<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> Microsoft has also created bindings for other languages, including <a href="C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a> and <a href="Rust_(programming_language)" title="Rust (programming language)">Rust</a> for calling the Win32 API.<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="Windows_API" title="Windows API">Windows API</a></li>
<li><a href="Microsoft_Foundation_Class_Library" title="Microsoft Foundation Class Library">Microsoft Foundation Class Library</a></li>
<li><a href="C_POSIX_library" title="C POSIX library">C POSIX library</a></li>
<li><a href="C_standard_library" title="C standard library">C standard library</a></li>
<li><a href="C%2B%2B_standard_library" class="mw-redirect" title="C++ standard library">C++ standard library</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1327269900">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}body.skin-vector-2022 .mw-parser-output .reflist-columns-2{column-width:27em}body.skin-vector-2022 .mw-parser-output .reflist-columns-3{column-width:22.5em}.mw-parser-output .references[data-mw-group=upper-alpha]{list-style-type:upper-alpha}.mw-parser-output .references[data-mw-group=upper-roman]{list-style-type:upper-roman}.mw-parser-output .references[data-mw-group=lower-alpha]{list-style-type:lower-alpha}.mw-parser-output .references[data-mw-group=lower-greek]{list-style-type:lower-greek}.mw-parser-output .references[data-mw-group=lower-roman]{list-style-type:lower-roman}.mw-parser-output div.reflist-liststyle-upper-alpha .references{list-style-type:upper-alpha}.mw-parser-output div.reflist-liststyle-upper-roman .references{list-style-type:upper-roman}.mw-parser-output div.reflist-liststyle-lower-alpha .references{list-style-type:lower-alpha}.mw-parser-output div.reflist-liststyle-lower-greek .references{list-style-type:lower-greek}.mw-parser-output div.reflist-liststyle-lower-roman .references{list-style-type:lower-roman}


/* end   https://en.wikipedia.org/ */
</style><div>
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-windatatypes-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-windatatypes_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-windatatypes_1-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1333433106">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./_mw_/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./_mw_/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./_mw_/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./_mw_/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#bf3c2c)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#bf3c2c)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end   https://en.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types">"Windows Data Types"</a>. learn.microsoft.com. 7 November 2024.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Windows+Data+Types&amp;rft.pub=learn.microsoft.com&amp;rft.date=2024-11-07&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fwinprog%2Fwindows-data-types&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/api/guiddef/">"guiddef.h header"</a>. learn.microsoft.com. 23 January 2023.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=guiddef.h+header&amp;rft.pub=learn.microsoft.com&amp;rft.date=2023-01-23&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fguiddef%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/api/winerror/">"winerror.h header"</a>. learn.microsoft.com. 23 January 2023.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=winerror.h+header&amp;rft.pub=learn.microsoft.com&amp;rft.date=2023-01-23&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwinerror%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/api/wingdi/">"wingdi.h header"</a>. learn.microsoft.com. 23 January 2023.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=wingdi.h+header&amp;rft.pub=learn.microsoft.com&amp;rft.date=2023-01-23&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwingdi%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/api/winnetwk/">"winnetwk.h header"</a>. learn.microsoft.com. 23 January 2023.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=winnetwk.h+header&amp;rft.pub=learn.microsoft.com&amp;rft.date=2023-01-23&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwinnetwk%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/api/winnt/">"winnt.h header"</a>. learn.microsoft.com. 23 January 2023.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=winnt.h+header&amp;rft.pub=learn.microsoft.com&amp;rft.date=2023-01-23&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwinnt%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/api/winreg/">"winreg.h header"</a>. learn.microsoft.com. 23 January 2023.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=winreg.h+header&amp;rft.pub=learn.microsoft.com&amp;rft.date=2023-01-23&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwinreg%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-makeintresourcea">"MAKEINTRESOURCEA macro (winuser.h)"</a>. learn.microsoft.com. 19 November 2024.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=MAKEINTRESOURCEA+macro+%28winuser.h%29&amp;rft.pub=learn.microsoft.com&amp;rft.date=2024-11-19&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwinuser%2Fnf-winuser-makeintresourcea&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-dialogboxa">"DialogBoxA macro (winuser.h)"</a>. learn.microsoft.com. 22 February 2024.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=DialogBoxA+macro+%28winuser.h%29&amp;rft.pub=learn.microsoft.com&amp;rft.date=2024-02-22&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwinuser%2Fnf-winuser-dialogboxa&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/">"winuser.h header"</a>. learn.microsoft.com. 23 January 2023.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=winuser.h+header&amp;rft.pub=learn.microsoft.com&amp;rft.date=2023-01-23&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwinuser%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/api/winver/">"winver.h header"</a>. learn.microsoft.com. 23 January 2023.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=winver.h+header&amp;rft.pub=learn.microsoft.com&amp;rft.date=2023-01-23&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwinver%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://blogs.windows.com/windowsdeveloper/2021/01/21/making-win32-apis-more-accessible-to-more-languages/">"Making Win32 APIs More Accessible to More Languages"</a>. blogs.windows.com. 21 January 2021.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Making+Win32+APIs+More+Accessible+to+More+Languages&amp;rft.pub=blogs.windows.com&amp;rft.date=2021-01-21&amp;rft_id=https%3A%2F%2Fblogs.windows.com%2Fwindowsdeveloper%2F2021%2F01%2F21%2Fmaking-win32-apis-more-accessible-to-more-languages%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
<li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/microsoft/win32metadata">"win32metadata"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">4 September</span> 2025</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=win32metadata&amp;rft_id=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fwin32metadata&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AWindows.h" class="Z3988"></span></span>
</li>
</ol></div></div>
<style data-mw-deduplicate="TemplateStyles:r1314755338">
/* start https://en.wikipedia.org/ */


.mw-parser-output .side-box{margin:4px 0;box-sizing:border-box;border:1px solid #aaa;font-size:88%;line-height:1.25em;background-color:var(--background-color-interactive-subtle,#f8f9fa);color:inherit;display:flow-root}.mw-parser-output .infobox .side-box{font-size:100%}.mw-parser-output .side-box-abovebelow,.mw-parser-output .side-box-text{padding:0.25em 0.9em}.mw-parser-output .side-box-image{padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .side-box-imageright{padding:2px 0.9em 2px 0;text-align:center}@media(min-width:500px){.mw-parser-output .side-box-flex{display:flex;align-items:center}.mw-parser-output .side-box-text{flex:1;min-width:0}}@media(min-width:640px){.mw-parser-output .side-box{width:238px}.mw-parser-output .side-box-right{clear:right;float:right;margin-left:1em}.mw-parser-output .side-box-left{margin-right:1em}}


/* end   https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1311551236">
/* start https://en.wikipedia.org/ */


@media print{body.ns-0 .mw-parser-output .sistersitebox{display:none!important}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-en-v2.svg"]{filter:invert(1)brightness(55%)contrast(250%)hue-rotate(180deg)}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-en-v2.svg"]{filter:invert(1)brightness(55%)contrast(250%)hue-rotate(180deg)}}


/* end   https://en.wikipedia.org/ */
</style><div class="side-box side-box-right  sistersitebox"><style data-mw-deduplicate="TemplateStyles:r1126788409">
/* start https://en.wikipedia.org/ */


.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}


/* end   https://en.wikipedia.org/ */
</style>
<div class="side-box-flex">
<div class="side-box-image"><span class="noviewer" typeof="mw:File"><img alt="" src="./_assets_/0c70a452f799bfe840676ee341124611/Wikibooks-logo-en-noslogan.svg.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="400" data-file-height="400" loading="lazy"></span></div>
<div class="side-box-text plainlist">Wikibooks has a book on the topic of: <i><b><a href="https://en.wikibooks.org/wiki/Windows_Programming" class="extiw external" title="wikibooks:Windows Programming">Windows Programming</a></b></i></div></div>
</div></div><!--htdig_noindex--><div><div class="zim-footer">
    This article is issued from <a class="external text" title="Last edited on 2026-02-12" href="https://en.wikipedia.org/wiki/?title=Windows.h&amp;oldid=1337963618">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
            </div>
          </main>
        </div>
      </div>
    </div>
     <script src="./_webp_/webpHandler.js"></script>
  

</body></html>