Avatar of esotericRa

asked on 

Setting new country with SetLocaleInfo

Hello, I am trying to set a new country using SetLocaleInfo() but it's not cooperating. Here's the code:

#include "windows.h"
#include "stdio.h"

int main(int argc, char* argv[])
      BOOL sli;
      LCID US = GetUserDefaultLCID();
      sli = SetLocaleInfo(US, LOCALE_ICOUNTRY, "613\0");
      if(sli != 0){
            puts("Should have changed the localeInfo...");
            printf("There was a problem...", GetLastError());
      return 0;

GetLastError() doesn't return any value so I'm not sure what the problem is -- thank you

Avatar of undefined
Last Comment

8/22/2022 - Mon