18 if (
HIWORD(resId) == 0xffff)
23 if (!hResource)
return 0;
29 idxString = resId & 0xf;
33 if (!pwszBuffer)
return *
pString;
40 pwszBuffer[cMaxChars] =
L'\0';
61 DWORD dwValueType, cbData;
66 if (!
hKey || !pszOutBuf)
69 if (pszDirectory && *pszDirectory)
98 if (!pwszExpandedBuffer)
108 memcpy(pwszExpandedBuffer, pwszTempBuffer, cbData);
114 if (*pwszExpandedBuffer !=
L'@')
116 lstrcpynW(pszOutBuf, pwszExpandedBuffer, cbOutBuf /
sizeof(
WCHAR));
125 if (!pComma || pComma[1] !=
L'-')
131 uiStringId =
_wtoi(pComma+2);
#define ERROR_NOT_ENOUGH_MEMORY
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)
static void cleanup(void)
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
#define memcpy(s1, s2, n)
#define ERROR_FILE_NOT_FOUND
static int load_string(HINSTANCE hModule, UINT resId, LPWSTR pwszBuffer, INT cMaxChars)
LONG RegLoadMUIStringW(IN HKEY hKey, IN LPCWSTR pszValue OPTIONAL, OUT LPWSTR pszOutBuf, IN DWORD cbOutBuf, OUT LPDWORD pcbData OPTIONAL, IN DWORD Flags, IN LPCWSTR pszDirectory OPTIONAL)
PULONG MinorVersion OPTIONAL
#define LOAD_LIBRARY_AS_DATAFILE
_In_ DWORD _Out_writes_bytes_to_opt_ pcbData void _Inout_ DWORD * pcbData
#define MAKEINTRESOURCEW(i)
_Must_inspect_result_ _In_ ULONG Flags