Retrieve System Language

BlitzMax Forums/BlitzMax Programming/Retrieve System Language

I have been trying to get the current system language the blitzmax program is being executed on. i want to make a decision upon which language the game should show.
i have tried several things but it doesn't work out.
this is what i have tried:

Import "-luser32"

Extern "win32"

  Function GetSystemDefaultLangID () = "GetSystemDefaultLangID@0"
  Function VerLanguageName:Int (wLang:Int, szLang$z, nSize:Int ) = "VerLanguageNameA"
   
EndExtern

Local Lid:Int = GetSystemDefaultLangID()
Global Language:String
Notify "id = " + Lid
VerLanguageName( Lid, Language, 64 )
Notify "lang = " + Language

End


but this always gives me:
undefined reference to `VerLanguageNameA'


commenting this out will give me an ID.
but i could not find a table with matching values to it yet.
'VerLanguageName( Lid, Language, 64 )


maybe i am doing it completely wrong and there is a much better way to find out. could someone help, please?