source/VCDeploy/atlsdply.cpp
HRESULT GetUserDefaultUILanguageLegacyCompat(LANGID* pLangid)
{
	HRESULT hr=E_FAIL;	
	if (pLangid == NULL) { return E_POINTER; }
	PFNGETUSERDEFAULTUILANGUAGE pfnGetUserDefaultUILanguage;	
	HINSTANCE hKernel32 = ::GetModuleHandle(_T("kernel32.dll"));
	pfnGetUserDefaultUILanguage = (PFNGETUSERDEFAULTUILANGUAGE)::GetProcAddress(hKernel32, "GetUserDefaultUILanguage");
	if(pfnGetUserDefaultUILanguage != NULL)
	{
		*pLangid = pfnGetUserDefaultUILanguage();
		hr = S_OK;
	}

	return hr;
}
//////////////////////////////////////////////////////////////////////////
//Purpose: GetUserDefaultUILanguage for downlevel platforms (Win9x, NT4).
//Input: szDllName - the string resource dll name to search. Ex: ToolUI.dll 
//Output: TCHAR *szPathOut - filled with absolute path to dll, if found.
//		  size_t sizeInCharacters - buffer size in characters
//Returns: Success - HMODULE of found dll, Failure - NULL
//////////////////////////////////////////////////////////////////////////
GetUserDefaultUILanguage for downlevel platforms (Win9x, NT4).
Input: szDllName - the string resource dll name to search. Ex: ToolUI.dll
Output: TCHAR *szPathOut - filled with absolute path to dll, if found.
size_t sizeInCharacters - buffer size in characters
Returns: Success - HMODULE of found dll, Failure - NULL
GetUserDefaultUILanguage for downlevel platforms ( Win9x NT4 ) . Input : szDllName - the string resource dll name to search . Ex : ToolUI . dll Output : TCHAR * szPathOut - filled with absolute path to dll if found . size_t sizeInCharacters - buffer size in characters Returns : Success - HMODULE of found dll Failure - NULL
HRESULT GetUserDefaultUILanguageLegacyCompat(LANGID* pLangid)
{
	HRESULT hr=E_FAIL;	
	if (pLangid == NULL) { return E_POINTER; }
	PFNGETUSERDEFAULTUILANGUAGE pfnGetUserDefaultUILanguage;	
	HINSTANCE hKernel32 = ::GetModuleHandle(_T("kernel32.dll"));
	pfnGetUserDefaultUILanguage = (PFNGETUSERDEFAULTUILANGUAGE)::GetProcAddress(hKernel32, "GetUserDefaultUILanguage");
	if(pfnGetUserDefaultUILanguage != NULL)
	{
		*pLangid = pfnGetUserDefaultUILanguage();
		hr = S_OK;
	}
	return hr;
}
HRESULT GetUserDefaultUILanguageLegacyCompat ( LANGID * pLangid ) { HRESULT hr = E_FAIL ; if ( pLangid == NULL ) { return E_POINTER ; } PFNGETUSERDEFAULTUILANGUAGE pfnGetUserDefaultUILanguage ; HINSTANCE hKernel32 = :: GetModuleHandle ( _T ( " " ) ) ; pfnGetUserDefaultUILanguage = ( PFNGETUSERDEFAULTUILANGUAGE ) :: GetProcAddress ( hKernel32 , " " ) ; if ( pfnGetUserDefaultUILanguage != NULL ) { * pLangid = pfnGetUserDefaultUILanguage ( ) ; hr = S_OK ; } return hr ; }
Purpose: GetUserDefaultUILanguage for downlevel platforms (Win9x, NT4).
Purpose : GetUserDefaultUILanguage for downlevel platforms ( Win9x NT4 ) .