SFMSG initialization , shutdown and configuration APIs.
More...
|
int __stdcall | SFMSG_Reset (unsigned int uClientToken, DWORD lcid) |
| Reset the locality language, and free resources.
|
|
int __stdcall | SFMSG_LCID (LPDWORD plcid) |
| returns the LCID of the currently selected language.
|
|
int __stdcall | SFMSG_LCID_SUPPORTED (DWORD lcid, LPBOOL pbExist) |
| Examine the installation directory for the support of the LCID (or it neutral version)
|
|
int __stdcall | SFMSG_NEUTRAL_LCID (LPDWORD pSupportedLCID) |
| convert from language+culture LCID to language culture-neutral LCID
|
|
int __stdcall | SFMSG_LCID_PATH (DWORD lcid, LPWSTR szPath, size_t *pSize) |
| Lookup and retrieve a the filepath used in our locality system.
|
|
|
int __stdcall | SFMSG_Init (LPCWSTR szDllName, LPCWSTR szResDir, DWORD lcid, unsigned int *pClientToken) |
| Initialize the locality system.
|
|
int __stdcall | SFMSG_Shutdown (unsigned int uClientToken) |
| shutdown the locality system, and free resources.
|
|
The functions here setup the locality library to locate the proper resources.
◆ SFMSG_Init()
int __stdcall SFMSG_Init |
( |
LPCWSTR | szDllName, |
|
|
LPCWSTR | szResDir, |
|
|
DWORD | lcid, |
|
|
unsigned int * | pClientToken ) |
initialize the SFMSG Library
- Parameters
-
[in] | szDllName | (Required) the resource dll base file name (e.g., spiderxl) |
[in] | szResDir | (Required) the location of the resources dll |
[in] | lcid | (Required) MS Locality ID |
[out] | pClientToken | (Required) a pointer to an integer variable to hold the returned token value (needed later for the locality system shutdown) |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFMSG.h (include Windows.h) |
Library | SFMSG.lib |
DLL | SFMSG.dll SFLOG.dll |
- See also
-
- Examples
- msg_init.cpp.
◆ SFMSG_LCID()
int __stdcall SFMSG_LCID |
( |
LPDWORD | plcid | ) |
|
query the current LCID
- Parameters
-
[out] | plcid | (Required) is MS Locality ID. |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- Snippet
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFMSG.h (include Windows.h) |
Library | SFMSG.lib |
DLL | SFMSG.dll SFLOG.dll |
- See also
- SFMSG_Init
- Examples
- msg_init.cpp.
◆ SFMSG_LCID_PATH()
int __stdcall SFMSG_LCID_PATH |
( |
DWORD | lcid, |
|
|
LPWSTR | szPath, |
|
|
size_t * | pSize ) |
Return the full path of the locale resources folder on user's filesystem
- Parameters
-
[in] | lcid | (Required) is MS Locality ID |
[out] | szPath | (Optional) is address to a buffer to hold the path. |
[in,out] | pSize | (Required) is the size of the szPath , and upon return, holds the number of actual size of the path. |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- Snippet
std::wstring szPath;
size_t nLen = 0;
nLen++;
std::vector<TCHAR> szTmp(nLen, TCHAR(0));
szPath = &szTmp[0];
}
std::wcout << L" SUCCESS - locality resource path: " << szPath << std::endl;
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFMSG.h (include Windows.h) |
Library | SFMSG.lib |
DLL | SFMSG.dll SFLOG.dll |
- See also
-
- Examples
- msg_init.cpp.
◆ SFMSG_LCID_SUPPORTED()
int __stdcall SFMSG_LCID_SUPPORTED |
( |
DWORD | lcid, |
|
|
LPBOOL | pbExist ) |
examine whether the given LCID is installed
- Parameters
-
[in] | lcid | (Required) is MS Locality ID |
[out] | pbExist | (Required) is a pointer to a BOOLEAN flag to return the status of locality presence in the locality folder. |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFMSG.h (include Windows.h) |
Library | SFMSG.lib |
DLL | SFMSG.dll SFLOG.dll |
- See also
-
◆ SFMSG_NEUTRAL_LCID()
int __stdcall SFMSG_NEUTRAL_LCID |
( |
LPDWORD | pSupportedLCID | ) |
|
convert the given LCID to neutral LCID (no sub-language or sort order)
- Parameters
-
[in,out] | pSupportedLCID | (Required) is a pointer to a LCID holding the input and the return value. |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFMSG.h (include Windows.h) |
Library | SFMSG.lib |
DLL | SFMSG.dll SFLOG.dll |
- See also
-
◆ SFMSG_Reset()
int __stdcall SFMSG_Reset |
( |
unsigned int | uClientToken, |
|
|
DWORD | lcid ) |
Switch the language library to a different one
- Parameters
-
[in] | uClientToken | (Required) Is the locality system token id (acquired during initialization). |
[in] | lcid | (Required) is the new MS Locality ID |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFMSG.h (include Windows.h) |
Library | SFMSG.lib |
DLL | SFMSG.dll SFLOG.dll |
- See also
-
◆ SFMSG_Shutdown()
int __stdcall SFMSG_Shutdown |
( |
unsigned int | uClientToken | ) |
|
Shutdown and cleanup any resources used by the SFMSG Library
- Parameters
-
[in] | uClientToken | (Required) the locality system token id (acquired during initialization). |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFMSG.h (include Windows.h) |
Library | SFMSG.lib |
DLL | SFMSG.dll SFLOG.dll |
- See also
-
- Examples
- msg_init.cpp.