16#define WIN32_NO_STATUS
18#define COM_NO_WINDOWS_H
28#include <wine/unicode.h>
47 if (
HIWORD(resId) == 0xffff)
52 if (!hResource)
return 0;
58 idxString = resId & 0xf;
62 if (!pwszBuffer)
return *
pString;
69 pwszBuffer[cMaxChars] =
L'\0';
89 DWORD dwValueType, cbData;
94 if (!
hKey || !pszOutBuf)
97 if (pszDirectory && *pszDirectory)
99 FIXME(
"BaseDir parameter not yet supported!\n");
126 if (!pwszExpandedBuffer)
136 memcpy(pwszExpandedBuffer, pwszTempBuffer, cbData);
142 if (*pwszExpandedBuffer !=
L'@')
144 lstrcpynW(pszOutBuf, pwszExpandedBuffer, cbOutBuf /
sizeof(
WCHAR));
153 if (!pComma || pComma[1] !=
L'-')
159 uiStringId =
_wtoi(pComma+2);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
void shell(int argc, const char *argv[])
#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)
#define WideCharToMultiByte
static void cleanup(void)
static const WCHAR valueW[]
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
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz(_Out_ PUNICODE_STRING Destination, _In_ PCSZ Source)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
static int load_string(HINSTANCE hModule, UINT resId, LPWSTR pwszBuffer, INT cMaxChars)
LONG WINAPI 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)
LONG WINAPI RegLoadMUIStringA(IN HKEY hKey, IN LPCSTR pszValue OPTIONAL, OUT LPSTR pszOutBuf, IN DWORD cbOutBuf, OUT LPDWORD pcbData OPTIONAL, IN DWORD Flags, IN LPCSTR 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