Using Win32 functions in Visual FoxPro Image Gallery
Multilingual User Interface
Code examples:
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the process preferred UI languages.
Code examples:
BOOL GetProcessPreferredUILanguages(
  _In_       DWORD dwFlags,
  _Out_      PULONG pulNumLanguages,
  _Out_opt_  PZZWSTR pwszLanguagesBuffer,
  _Inout_    PULONG pcchLanguagesBuffer
FoxPro declaration:
DECLARE INTEGER GetProcessPreferredUILanguages IN kernel32;
    INTEGER dwFlags,;
    INTEGER @pulNumLanguages,;
    STRING @pwszLanguagesBuffer,;
    INTEGER @pcchLanguagesBuffer
dwFlags [in]
Flags identifying the language format to use for the process preferred UI languages.

pulNumLanguages [out]
Pointer to the number of languages retrieved in pwszLanguagesBuffer.

pwszLanguagesBuffer [out, optional]
Optional. Pointer to a double null-terminated multi-string buffer in which the function retrieves an ordered, null-delimited list in preference order, starting with the most preferable.

pcchLanguagesBuffer [in, out]
Pointer to the size, in characters, for the language buffer indicated by pwszLanguagesBuffer. On successful return from the function, the parameter contains the size of the retrieved language buffer.
Return value:
Returns TRUE if successful or FALSE otherwise.

nNumLanguages = 0
cBuffer = REPLICATE(CHR(0), 128)
nBufSize = LEN(m.cBuffer) / 2

= GetProcessPreferredUILanguages(;

? nNumLanguages, nBufSize

? SUBSTR(STRCONV(m.cBuffer, 6), 1, m.nBufSize)
* e.g. "fr-CA en-CA" with MUI_LANGUAGE_NAME
* e.g. "0C0C 1009" with MUI_LANGUAGE_ID

My comment:
By default, a VFP process does not have any preferred UI languages set.

See also: SetProcessPreferredUILanguages
Word Index links for the GetProcessPreferredUILanguages :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2015-01-23 19:03:31
Modified: 2015-01-23 19:10:49
Visited in last 7 days: 55
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
16 sec.Function: 'GetProcessIoCounters'
33 sec.Function: 'ImageList_Add'
51 sec.Function: 'midiOutClose'
1.15 min.Function: 'PathIsRelative'
1.43 min.Function: 'CeRapiFreeBuffer'
1.73 min.Function: 'GetMenuItemID'
2.03 min.Function: 'URLDownloadToCacheFile'
2.33 min.Function: 'ExpandEnvironmentStrings'
2.65 min.Function: 'mixerClose'
2.97 min.Function: 'CreateVirtualDisk'
Advertise here!