/* Auto generated GreenCard 2 code for FFI */
#include <windows.h>
#include "errors.h"
#include "win32debug.h"
#include "Win32NLS_stub_ffi.h"
DWORD prim_lOCALE_SYSTEM_DEFAULT()
{ DWORD res1;
  do {res1=LOCALE_SYSTEM_DEFAULT;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lOCALE_USER_DEFAULT()
{ DWORD res1;
  do {res1=LOCALE_USER_DEFAULT;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lOCALE_NEUTRAL()
{ DWORD res1;
  do {res1=LOCALE_NEUTRAL;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_convertDefaultLocale(DWORD arg1)
{ DWORD res1;
  do {res1 = ConvertDefaultLocale(arg1);
      
      return((DWORD)(res1));} while(0);
}
UINT prim_cP_ACP()
{ UINT res1;
  do {res1=CP_ACP;
      
      return((UINT)(res1));} while(0);
}
UINT prim_cP_MACCP()
{ UINT res1;
  do {res1=CP_MACCP;
      
      return((UINT)(res1));} while(0);
}
UINT prim_cP_OEMCP()
{ UINT res1;
  do {res1=CP_OEMCP;
      
      return((UINT)(res1));} while(0);
}
UINT prim_getACP()
{ UINT res1;
  do {res1 = GetACP();
      
      return((UINT)(res1));} while(0);
}
void prim_setThreadLocale(DWORD arg1)
{ do {SetThreadLocale(arg1);
      ;} while(0);
}
UINT prim_lOCALE_ICALENDARTYPE()
{ UINT res1;
  do {res1=LOCALE_ICALENDARTYPE;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SDATE()
{ UINT res1;
  do {res1=LOCALE_SDATE;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_ICURRDIGITS()
{ UINT res1;
  do {res1=LOCALE_ICURRDIGITS;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SDECIMAL()
{ UINT res1;
  do {res1=LOCALE_SDECIMAL;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_ICURRENCY()
{ UINT res1;
  do {res1=LOCALE_ICURRENCY;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SGROUPING()
{ UINT res1;
  do {res1=LOCALE_SGROUPING;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_IDIGITS()
{ UINT res1;
  do {res1=LOCALE_IDIGITS;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SLIST()
{ UINT res1;
  do {res1=LOCALE_SLIST;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_IFIRSTDAYOFWEEK()
{ UINT res1;
  do {res1=LOCALE_IFIRSTDAYOFWEEK;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SLONGDATE()
{ UINT res1;
  do {res1=LOCALE_SLONGDATE;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_IFIRSTWEEKOFYEAR()
{ UINT res1;
  do {res1=LOCALE_IFIRSTWEEKOFYEAR;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SMONDECIMALSEP()
{ UINT res1;
  do {res1=LOCALE_SMONDECIMALSEP;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_ILZERO()
{ UINT res1;
  do {res1=LOCALE_ILZERO;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SMONGROUPING()
{ UINT res1;
  do {res1=LOCALE_SMONGROUPING;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_IMEASURE()
{ UINT res1;
  do {res1=LOCALE_IMEASURE;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SMONTHOUSANDSEP()
{ UINT res1;
  do {res1=LOCALE_SMONTHOUSANDSEP;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_INEGCURR()
{ UINT res1;
  do {res1=LOCALE_INEGCURR;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SNEGATIVESIGN()
{ UINT res1;
  do {res1=LOCALE_SNEGATIVESIGN;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_INEGNUMBER()
{ UINT res1;
  do {res1=LOCALE_INEGNUMBER;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SPOSITIVESIGN()
{ UINT res1;
  do {res1=LOCALE_SPOSITIVESIGN;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SSHORTDATE()
{ UINT res1;
  do {res1=LOCALE_SSHORTDATE;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_ITIME()
{ UINT res1;
  do {res1=LOCALE_ITIME;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_STHOUSAND()
{ UINT res1;
  do {res1=LOCALE_STHOUSAND;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_S1159()
{ UINT res1;
  do {res1=LOCALE_S1159;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_STIME()
{ UINT res1;
  do {res1=LOCALE_STIME;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_S2359()
{ UINT res1;
  do {res1=LOCALE_S2359;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_STIMEFORMAT()
{ UINT res1;
  do {res1=LOCALE_STIMEFORMAT;
      
      return((UINT)(res1));} while(0);
}
UINT prim_lOCALE_SCURRENCY()
{ UINT res1;
  do {res1=LOCALE_SCURRENCY;
      
      return((UINT)(res1));} while(0);
}
void* prim_setLocaleInfo(DWORD arg1,UINT arg2)
{ static struct {HsPtr gc_res2;HsInt gc_failed;HsPtr gc_failstring;} gc_result;
  int gc_failed;
  char* gc_failstring;
  do { LPCSTR s;
     BOOL b = SetLocaleInfo(arg1,arg2,s);
      if ((gc_failed = (  b == FALSE  ))) {gc_failstring = ErrorWin("SetLocaleInfo") ;}
      else {gc_failed = 0;}
      gc_result.gc_res2 = (char *)(s);
      gc_result.gc_failed = gc_failed;
      gc_result.gc_failstring = gc_failstring;
      
      return(&gc_result);} while(0);
}
char * access_prim_setLocaleInfo_gc_res2(void *ptr){ return(((struct {HsPtr gc_res2;HsInt gc_failed;HsPtr gc_failstring;}*) ptr)->gc_res2);}
int access_prim_setLocaleInfo_gc_failed(void *ptr){ return(((struct {HsPtr gc_res2;HsInt gc_failed;HsPtr gc_failstring;}*) ptr)->gc_failed);}
void* access_prim_setLocaleInfo_gc_failstring(void *ptr){ return(((struct {HsPtr gc_res2;HsInt gc_failed;HsPtr gc_failstring;}*) ptr)->gc_failstring);}
DWORD prim_lCMAP_BYTEREV()
{ DWORD res1;
  do {res1=LCMAP_BYTEREV;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCMAP_FULLWIDTH()
{ DWORD res1;
  do {res1=LCMAP_FULLWIDTH;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCMAP_HALFWIDTH()
{ DWORD res1;
  do {res1=LCMAP_HALFWIDTH;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCMAP_HIRAGANA()
{ DWORD res1;
  do {res1=LCMAP_HIRAGANA;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCMAP_KATAKANA()
{ DWORD res1;
  do {res1=LCMAP_KATAKANA;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCMAP_LOWERCASE()
{ DWORD res1;
  do {res1=LCMAP_LOWERCASE;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCMAP_SORTKEY()
{ DWORD res1;
  do {res1=LCMAP_SORTKEY;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCMAP_UPPERCASE()
{ DWORD res1;
  do {res1=LCMAP_UPPERCASE;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_nORM_IGNORECASE()
{ DWORD res1;
  do {res1=NORM_IGNORECASE;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_nORM_IGNORENONSPACE()
{ DWORD res1;
  do {res1=NORM_IGNORENONSPACE;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_nORM_IGNOREKANATYPE()
{ DWORD res1;
  do {res1=NORM_IGNOREKANATYPE;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_nORM_IGNORESYMBOLS()
{ DWORD res1;
  do {res1=NORM_IGNORESYMBOLS;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_nORM_IGNOREWIDTH()
{ DWORD res1;
  do {res1=NORM_IGNOREWIDTH;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_sORT_STRINGSORT()
{ DWORD res1;
  do {res1=SORT_STRINGSORT;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCMAP_LINGUISTIC_CASING()
{ DWORD res1;
  do {res1=LCMAP_LINGUISTIC_CASING;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCMAP_SIMPLIFIED_CHINESE()
{ DWORD res1;
  do {res1=LCMAP_SIMPLIFIED_CHINESE;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCMAP_TRADITIONAL_CHINESE()
{ DWORD res1;
  do {res1=LCMAP_TRADITIONAL_CHINESE;
      
      return((DWORD)(res1));} while(0);
}
void* prim_lCMapString(DWORD arg1,DWORD arg2,char * arg3,int arg3_len,int arg4)
{ static struct {HsPtr gc_res2;HsInt gc_failed;HsPtr gc_failstring;} gc_result;
  int gc_failed;
  char* gc_failstring;
  do { int i; char* str;
     str = malloc(sizeof(char)*arg4);
     i = LCMapString(arg1,arg2,arg3,arg3_len,str,arg4);
      if ((gc_failed = (  i == 0  ))) {gc_failstring =  ErrorWin("LCMapString") ;}
      else {gc_failed = 0;}
      gc_result.gc_res2 = (char *)(str);
      gc_result.gc_failed = gc_failed;
      gc_result.gc_failstring = gc_failstring;
      
      return(&gc_result);} while(0);
}
char * access_prim_lCMapString_gc_res2(void *ptr){ return(((struct {HsPtr gc_res2;HsInt gc_failed;HsPtr gc_failstring;}*) ptr)->gc_res2);}
int access_prim_lCMapString_gc_failed(void *ptr){ return(((struct {HsPtr gc_res2;HsInt gc_failed;HsPtr gc_failstring;}*) ptr)->gc_failed);}
void* access_prim_lCMapString_gc_failstring(void *ptr){ return(((struct {HsPtr gc_res2;HsInt gc_failed;HsPtr gc_failstring;}*) ptr)->gc_failstring);}
DWORD prim_lCID_INSTALLED()
{ DWORD res1;
  do {res1=LCID_INSTALLED;
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_lCID_SUPPORTED()
{ DWORD res1;
  do {res1=LCID_SUPPORTED;
      
      return((DWORD)(res1));} while(0);
}
int prim_isValidLocale(DWORD arg1,DWORD arg2)
{ int res1;
  do {res1 = IsValidLocale(arg1, arg2);
      
      return((int)(res1));} while(0);
}
int prim_isValidCodePage(UINT arg1)
{ int res1;
  do {res1 = IsValidCodePage(arg1);
      
      return((int)(res1));} while(0);
}
DWORD prim_getUserDefaultLCID()
{ DWORD res1;
  do {res1 = GetUserDefaultLCID();
      
      return((DWORD)(res1));} while(0);
}
WORD prim_getUserDefaultLangID()
{ WORD res1;
  do {res1 = GetUserDefaultLangID();
      
      return((WORD)(res1));} while(0);
}
DWORD prim_getThreadLocale()
{ DWORD res1;
  do {res1 = GetThreadLocale();
      
      return((DWORD)(res1));} while(0);
}
DWORD prim_getSystemDefaultLCID()
{ DWORD res1;
  do {res1 = GetSystemDefaultLCID();
      
      return((DWORD)(res1));} while(0);
}
WORD prim_getSystemDefaultLangID()
{ WORD res1;
  do {res1 = GetSystemDefaultLangID();
      
      return((WORD)(res1));} while(0);
}
UINT prim_getOEMCP()
{ UINT res1;
  do {res1 = GetOEMCP();
      
      return((UINT)(res1));} while(0);
}
WORD prim_lANGIDFROMLCID(DWORD arg1)
{ WORD res1;
  do {res1 = LANGIDFROMLCID(arg1);
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_NEUTRAL()
{ WORD res1;
  do {res1=LANG_NEUTRAL;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_BULGARIAN()
{ WORD res1;
  do {res1=LANG_BULGARIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_CHINESE()
{ WORD res1;
  do {res1=LANG_CHINESE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_CZECH()
{ WORD res1;
  do {res1=LANG_CZECH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_DANISH()
{ WORD res1;
  do {res1=LANG_DANISH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_GERMAN()
{ WORD res1;
  do {res1=LANG_GERMAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_GREEK()
{ WORD res1;
  do {res1=LANG_GREEK;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_ENGLISH()
{ WORD res1;
  do {res1=LANG_ENGLISH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_SPANISH()
{ WORD res1;
  do {res1=LANG_SPANISH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_FINNISH()
{ WORD res1;
  do {res1=LANG_FINNISH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_FRENCH()
{ WORD res1;
  do {res1=LANG_FRENCH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_HUNGARIAN()
{ WORD res1;
  do {res1=LANG_HUNGARIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_ICELANDIC()
{ WORD res1;
  do {res1=LANG_ICELANDIC;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_ITALIAN()
{ WORD res1;
  do {res1=LANG_ITALIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_JAPANESE()
{ WORD res1;
  do {res1=LANG_JAPANESE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_KOREAN()
{ WORD res1;
  do {res1=LANG_KOREAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_DUTCH()
{ WORD res1;
  do {res1=LANG_DUTCH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_NORWEGIAN()
{ WORD res1;
  do {res1=LANG_NORWEGIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_POLISH()
{ WORD res1;
  do {res1=LANG_POLISH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_PORTUGUESE()
{ WORD res1;
  do {res1=LANG_PORTUGUESE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_ROMANIAN()
{ WORD res1;
  do {res1=LANG_ROMANIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_RUSSIAN()
{ WORD res1;
  do {res1=LANG_RUSSIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_CROATIAN()
{ WORD res1;
  do {res1=LANG_CROATIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_SLOVAK()
{ WORD res1;
  do {res1=LANG_SLOVAK;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_SWEDISH()
{ WORD res1;
  do {res1=LANG_SWEDISH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_TURKISH()
{ WORD res1;
  do {res1=LANG_TURKISH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_SLOVENIAN()
{ WORD res1;
  do {res1=LANG_SLOVENIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_ARABIC()
{ WORD res1;
  do {res1=LANG_ARABIC;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_CATALAN()
{ WORD res1;
  do {res1=LANG_CATALAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_HEBREW()
{ WORD res1;
  do {res1=LANG_HEBREW;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_SERBIAN()
{ WORD res1;
  do {res1=LANG_SERBIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_ALBANIAN()
{ WORD res1;
  do {res1=LANG_ALBANIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_THAI()
{ WORD res1;
  do {res1=LANG_THAI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_URDU()
{ WORD res1;
  do {res1=LANG_URDU;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_INDONESIAN()
{ WORD res1;
  do {res1=LANG_INDONESIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_BELARUSIAN()
{ WORD res1;
  do {res1=LANG_BELARUSIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_ESTONIAN()
{ WORD res1;
  do {res1=LANG_ESTONIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_LATVIAN()
{ WORD res1;
  do {res1=LANG_LATVIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_LITHUANIAN()
{ WORD res1;
  do {res1=LANG_LITHUANIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_FARSI()
{ WORD res1;
  do {res1=LANG_FARSI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_VIETNAMESE()
{ WORD res1;
  do {res1=LANG_VIETNAMESE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_ARMENIAN()
{ WORD res1;
  do {res1=LANG_ARMENIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_AZERI()
{ WORD res1;
  do {res1=LANG_AZERI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_BASQUE()
{ WORD res1;
  do {res1=LANG_BASQUE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_MACEDONIAN()
{ WORD res1;
  do {res1=LANG_MACEDONIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_AFRIKAANS()
{ WORD res1;
  do {res1=LANG_AFRIKAANS;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_GEORGIAN()
{ WORD res1;
  do {res1=LANG_GEORGIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_FAEROESE()
{ WORD res1;
  do {res1=LANG_FAEROESE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_HINDI()
{ WORD res1;
  do {res1=LANG_HINDI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_MALAY()
{ WORD res1;
  do {res1=LANG_MALAY;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_KAZAK()
{ WORD res1;
  do {res1=LANG_KAZAK;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_SWAHILI()
{ WORD res1;
  do {res1=LANG_SWAHILI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_UZBEK()
{ WORD res1;
  do {res1=LANG_UZBEK;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_TATAR()
{ WORD res1;
  do {res1=LANG_TATAR;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_BENGALI()
{ WORD res1;
  do {res1=LANG_BENGALI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_PUNJABI()
{ WORD res1;
  do {res1=LANG_PUNJABI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_GUJARATI()
{ WORD res1;
  do {res1=LANG_GUJARATI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_ORIYA()
{ WORD res1;
  do {res1=LANG_ORIYA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_TAMIL()
{ WORD res1;
  do {res1=LANG_TAMIL;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_TELUGU()
{ WORD res1;
  do {res1=LANG_TELUGU;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_KANNADA()
{ WORD res1;
  do {res1=LANG_KANNADA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_MALAYALAM()
{ WORD res1;
  do {res1=LANG_MALAYALAM;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_ASSAMESE()
{ WORD res1;
  do {res1=LANG_ASSAMESE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_MARATHI()
{ WORD res1;
  do {res1=LANG_MARATHI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_SANSKRIT()
{ WORD res1;
  do {res1=LANG_SANSKRIT;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_KONKANI()
{ WORD res1;
  do {res1=LANG_KONKANI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_MANIPURI()
{ WORD res1;
  do {res1=LANG_MANIPURI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_SINDHI()
{ WORD res1;
  do {res1=LANG_SINDHI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_KASHMIRI()
{ WORD res1;
  do {res1=LANG_KASHMIRI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_lANG_NEPALI()
{ WORD res1;
  do {res1=LANG_NEPALI;
      
      return((WORD)(res1));} while(0);
}
WORD prim_mAKELANGID(WORD arg1,WORD arg2)
{ WORD res1;
  do {res1 = MAKELANGID(arg1, arg2);
      
      return((WORD)(res1));} while(0);
}
DWORD prim_mAKELCID(WORD arg1,WORD arg2)
{ DWORD res1;
  do {res1 = MAKELCID(arg1, arg2);
      
      return((DWORD)(res1));} while(0);
}
WORD prim_pRIMARYLANGID(WORD arg1)
{ WORD res1;
  do {res1 = PRIMARYLANGID(arg1);
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANGID(WORD arg1)
{ WORD res1;
  do {res1 = SUBLANGID(arg1);
      
      return((WORD)(res1));} while(0);
}
WORD prim_sORTIDFROMLCID(DWORD arg1)
{ WORD res1;
  do {res1 = SORTIDFROMLCID(arg1);
      
      return((WORD)(res1));} while(0);
}
WORD prim_sORT_DEFAULT()
{ WORD res1;
  do {res1=SORT_DEFAULT;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sORT_JAPANESE_XJIS()
{ WORD res1;
  do {res1=SORT_JAPANESE_XJIS;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sORT_JAPANESE_UNICODE()
{ WORD res1;
  do {res1=SORT_JAPANESE_UNICODE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sORT_CHINESE_BIG5()
{ WORD res1;
  do {res1=SORT_CHINESE_BIG5;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sORT_CHINESE_UNICODE()
{ WORD res1;
  do {res1=SORT_CHINESE_UNICODE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sORT_KOREAN_KSC()
{ WORD res1;
  do {res1=SORT_KOREAN_KSC;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sORT_KOREAN_UNICODE()
{ WORD res1;
  do {res1=SORT_KOREAN_UNICODE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_NEUTRAL()
{ WORD res1;
  do {res1=SUBLANG_NEUTRAL;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_DEFAULT()
{ WORD res1;
  do {res1=SUBLANG_DEFAULT;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SYS_DEFAULT()
{ WORD res1;
  do {res1=SUBLANG_SYS_DEFAULT;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_CHINESE_TRADITIONAL()
{ WORD res1;
  do {res1=SUBLANG_CHINESE_TRADITIONAL;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_CHINESE_SIMPLIFIED()
{ WORD res1;
  do {res1=SUBLANG_CHINESE_SIMPLIFIED;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_CHINESE_HONGKONG()
{ WORD res1;
  do {res1=SUBLANG_CHINESE_HONGKONG;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_CHINESE_SINGAPORE()
{ WORD res1;
  do {res1=SUBLANG_CHINESE_SINGAPORE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_DUTCH()
{ WORD res1;
  do {res1=SUBLANG_DUTCH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_DUTCH_BELGIAN()
{ WORD res1;
  do {res1=SUBLANG_DUTCH_BELGIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_US()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_US;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_UK()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_UK;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_AUS()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_AUS;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_CAN()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_CAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_NZ()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_NZ;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_EIRE()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_EIRE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_FRENCH()
{ WORD res1;
  do {res1=SUBLANG_FRENCH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_FRENCH_BELGIAN()
{ WORD res1;
  do {res1=SUBLANG_FRENCH_BELGIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_FRENCH_CANADIAN()
{ WORD res1;
  do {res1=SUBLANG_FRENCH_CANADIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_FRENCH_SWISS()
{ WORD res1;
  do {res1=SUBLANG_FRENCH_SWISS;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_GERMAN()
{ WORD res1;
  do {res1=SUBLANG_GERMAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_GERMAN_SWISS()
{ WORD res1;
  do {res1=SUBLANG_GERMAN_SWISS;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_GERMAN_AUSTRIAN()
{ WORD res1;
  do {res1=SUBLANG_GERMAN_AUSTRIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ITALIAN()
{ WORD res1;
  do {res1=SUBLANG_ITALIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ITALIAN_SWISS()
{ WORD res1;
  do {res1=SUBLANG_ITALIAN_SWISS;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_NORWEGIAN_BOKMAL()
{ WORD res1;
  do {res1=SUBLANG_NORWEGIAN_BOKMAL;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_NORWEGIAN_NYNORSK()
{ WORD res1;
  do {res1=SUBLANG_NORWEGIAN_NYNORSK;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_PORTUGUESE()
{ WORD res1;
  do {res1=SUBLANG_PORTUGUESE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_PORTUGUESE_BRAZILIAN()
{ WORD res1;
  do {res1=SUBLANG_PORTUGUESE_BRAZILIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH()
{ WORD res1;
  do {res1=SUBLANG_SPANISH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_MEXICAN()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_MEXICAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_MODERN()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_MODERN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_SAUDI_ARABIA()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_SAUDI_ARABIA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_IRAQ()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_IRAQ;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_EGYPT()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_EGYPT;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_LIBYA()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_LIBYA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_ALGERIA()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_ALGERIA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_MOROCCO()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_MOROCCO;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_TUNISIA()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_TUNISIA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_OMAN()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_OMAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_YEMEN()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_YEMEN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_SYRIA()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_SYRIA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_JORDAN()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_JORDAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_LEBANON()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_LEBANON;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_KUWAIT()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_KUWAIT;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_UAE()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_UAE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_BAHRAIN()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_BAHRAIN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ARABIC_QATAR()
{ WORD res1;
  do {res1=SUBLANG_ARABIC_QATAR;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_AZERI_CYRILLIC()
{ WORD res1;
  do {res1=SUBLANG_AZERI_CYRILLIC;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_AZERI_LATIN()
{ WORD res1;
  do {res1=SUBLANG_AZERI_LATIN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_CHINESE_MACAU()
{ WORD res1;
  do {res1=SUBLANG_CHINESE_MACAU;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_SOUTH_AFRICA()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_SOUTH_AFRICA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_JAMAICA()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_JAMAICA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_CARIBBEAN()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_CARIBBEAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_BELIZE()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_BELIZE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_TRINIDAD()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_TRINIDAD;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_PHILIPPINES()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_PHILIPPINES;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_ENGLISH_ZIMBABWE()
{ WORD res1;
  do {res1=SUBLANG_ENGLISH_ZIMBABWE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_FRENCH_LUXEMBOURG()
{ WORD res1;
  do {res1=SUBLANG_FRENCH_LUXEMBOURG;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_FRENCH_MONACO()
{ WORD res1;
  do {res1=SUBLANG_FRENCH_MONACO;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_GERMAN_LUXEMBOURG()
{ WORD res1;
  do {res1=SUBLANG_GERMAN_LUXEMBOURG;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_GERMAN_LIECHTENSTEIN()
{ WORD res1;
  do {res1=SUBLANG_GERMAN_LIECHTENSTEIN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_KASHMIRI_INDIA()
{ WORD res1;
  do {res1=SUBLANG_KASHMIRI_INDIA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_KOREAN()
{ WORD res1;
  do {res1=SUBLANG_KOREAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_LITHUANIAN()
{ WORD res1;
  do {res1=SUBLANG_LITHUANIAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_MALAY_MALAYSIA()
{ WORD res1;
  do {res1=SUBLANG_MALAY_MALAYSIA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_MALAY_BRUNEI_DARUSSALAM()
{ WORD res1;
  do {res1=SUBLANG_MALAY_BRUNEI_DARUSSALAM;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_NEPALI_INDIA()
{ WORD res1;
  do {res1=SUBLANG_NEPALI_INDIA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SERBIAN_LATIN()
{ WORD res1;
  do {res1=SUBLANG_SERBIAN_LATIN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SERBIAN_CYRILLIC()
{ WORD res1;
  do {res1=SUBLANG_SERBIAN_CYRILLIC;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_GUATEMALA()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_GUATEMALA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_COSTA_RICA()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_COSTA_RICA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_PANAMA()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_PANAMA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_DOMINICAN_REPUBLIC()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_DOMINICAN_REPUBLIC;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_VENEZUELA()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_VENEZUELA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_COLOMBIA()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_COLOMBIA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_PERU()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_PERU;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_ARGENTINA()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_ARGENTINA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_ECUADOR()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_ECUADOR;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_CHILE()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_CHILE;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_URUGUAY()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_URUGUAY;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_PARAGUAY()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_PARAGUAY;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_BOLIVIA()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_BOLIVIA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_EL_SALVADOR()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_EL_SALVADOR;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_HONDURAS()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_HONDURAS;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_NICARAGUA()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_NICARAGUA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SPANISH_PUERTO_RICO()
{ WORD res1;
  do {res1=SUBLANG_SPANISH_PUERTO_RICO;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SWEDISH()
{ WORD res1;
  do {res1=SUBLANG_SWEDISH;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_SWEDISH_FINLAND()
{ WORD res1;
  do {res1=SUBLANG_SWEDISH_FINLAND;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_URDU_PAKISTAN()
{ WORD res1;
  do {res1=SUBLANG_URDU_PAKISTAN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_URDU_INDIA()
{ WORD res1;
  do {res1=SUBLANG_URDU_INDIA;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_UZBEK_LATIN()
{ WORD res1;
  do {res1=SUBLANG_UZBEK_LATIN;
      
      return((WORD)(res1));} while(0);
}
WORD prim_sUBLANG_UZBEK_CYRILLIC()
{ WORD res1;
  do {res1=SUBLANG_UZBEK_CYRILLIC;
      
      return((WORD)(res1));} while(0);
}
