in reply to How to call GetSystemDefaultLangID() with Win32::API
My guess is that the LANGID type is not interpreted properly, but, since that is a 'long' anyway, you can use that directly.
use strict; use warnings; use Win32::API; Win32::API->Import('kernel32.dll', 'long GetSystemDefaultLangID()') or die "Can't import GetSystemDefaultLangID: $^E\n"; my $langid = GetSystemDefaultLangID() or die "ERROR: LANGID Returned < +undef>\n"; print "Returned '$langid'\n"; printf "Lang ID: 0x%04X\n", $langid; #---- Run on Win XP (US English) Returns --- #Returned '2011563017' #Lang ID: 0x77E60409
Earth first! (We'll rob the other planets later)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to call GetSystemDefaultLangID() with Win32::API
by shay (Beadle) on Jun 23, 2004 at 16:11 UTC | |
by NetWallah (Canon) on Jun 23, 2004 at 18:39 UTC | |
by shay (Beadle) on Jun 24, 2004 at 12:34 UTC | |
by BrowserUk (Patriarch) on Jun 23, 2004 at 20:58 UTC |