windows.cfg: Add *LANGID() macros.

This commit is contained in:
versat 2019-04-01 13:58:56 +02:00
parent 5fb23a4983
commit 7832d69edf
1 changed files with 3 additions and 0 deletions

View File

@ -5828,6 +5828,9 @@ HFONT CreateFont(
<define name="CALLBACK" value="__stdcall"/>
<define name="CONST" value="const"/>
<define name="APIENTRY" value="WINAPI"/>
<define name="MAKELANGID(p, s)" value="((((WORD)(s)) &lt;&lt; 10) | (WORD)(p))"/>
<define name="PRIMARYLANGID(lgid)" value="((WORD)(lgid) &amp; 0x3ff)"/>
<define name="SUBLANGID(lgid)" value="((WORD)(lgid) &gt;&gt; 10)"/>
<!-- WORD MAKEWORD(BYTE bLow, BYTE bHigh); -->
<define name="MAKEWORD(bLow, bHigh)" value="((WORD)(((BYTE)(((DWORD_PTR)(bLow)) &amp; 0xff)) | ((WORD)((BYTE)(((DWORD_PTR)(bHigh)) &amp; 0xff))) &lt;&lt; 8))"/>
<!-- DWORD MAKELONG(WORD wLow, WORD wHigh); -->