shadowm

Untitled

Jun 23rd, 2011
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. // #include <windows.h> ?
  2.  
  3. std::string locale;
  4.  
  5. char c[1024];
  6. GetLocaleInfoA(LOCALE_USER_DEFAULT,LOCALE_SISO639LANGNAME,c,1024);
  7.  
  8. if(c[0]!='\0'){
  9.     locale=c;
  10.     GetLocaleInfoA(LOCALE_USER_DEFAULT,LOCALE_SISO3166CTRYNAME,c,1024);
  11.     if(c[0]!='\0') locale+=std::string("_")+c;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment