Using Win32 functions in Visual FoxPro Image Gallery
Multilingual User Interface
GetProcessPreferredUILanguages
GetThreadUILanguage
GetUserDefaultUILanguage
SetProcessPreferredUILanguages
Code examples:
GetProcessPreferredUILanguages
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the process preferred UI languages.
Code examples:
Declaration:
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
Parameters:
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.
Usage:
#DEFINE MUI_LANGUAGE_ID 0x4
#DEFINE MUI_LANGUAGE_NAME 0x8

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

= GetProcessPreferredUILanguages(;
    MUI_LANGUAGE_NAME,;
    @nNumLanguages,;
    @cBuffer,;
    @nBufSize;
    )

? 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  
FreeTranslation.com 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: 66
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.199.178)
11 sec.Function: 'GetSystemMetrics'
23 sec.Function: 'ClientToScreen'
34 sec.Function: 'NetShareAdd'
47 sec.Function: 'FtpGetFile'
59 sec.Function: 'GetTextMetrics'
1.17 min.Function: 'WindowProc'
1.4 min.Function: 'DrawMenuBar'
1.62 min.Function: 'SQLRowCount'
1.8 min.Function: 'GetBinaryType'
2 min.Function: 'GetSysColorBrush'
Google
Advertise here!