43" ForceRemove eebf73c4-50fd-478f-bbcf-db212221227a \n"
45" val 'string' = s 'string' \n"
46" val 'dword_quoted_dec' = d '1' \n"
47" val 'dword_unquoted_dec' = d 1 \n"
48" val 'dword_quoted_hex' = d '0xA' \n"
49" val 'dword_unquoted_hex' = d 0xA \n"
50" val 'binary_quoted' = b 'deadbeef' \n"
51" val 'binary_unquoted' = b deadbeef \n"
64 win_skip(
"Old versions of atl.dll don't support binary values\n");
71 win_skip(
"creating IRegistrar failed, hr = 0x%08X\n",
hr);
86 hr = IRegistrar_StringRegister(registrar,
textW);
87 ok(
hr ==
S_OK,
"StringRegister failed: %08x\n",
hr);
90 IRegistrar_Release(registrar);
100 ok(dword != 0xA,
"unquoted hex is not supposed to be preserved\n");
102 size =
sizeof(dword);
104 ok(lret ==
ERROR_SUCCESS,
"RegQueryValueExA failed, error %d\n", lret);
105 ok(dword != 0xA,
"quoted hex is not supposed to be preserved\n");
107 size =
sizeof(dword);
109 ok(lret ==
ERROR_SUCCESS,
"RegQueryValueExA failed, error %d\n", lret);
110 ok(dword == 1,
"unquoted dec is not supposed to be %d\n", dword);
112 size =
sizeof(dword);
114 ok(lret ==
ERROR_SUCCESS,
"RegQueryValueExA failed, error %d\n", lret);
115 ok(dword == 1,
"quoted dec is not supposed to be %d\n", dword);
121 "binary quoted value was not preserved (it's 0x%02X%02X%02X%02X)\n",
128 "binary unquoted value was not preserved (it's 0x%02X%02X%02X%02X)\n",
131 hr = IRegistrar_StringUnregister(registrar,
textW);
132 ok(
SUCCEEDED(
hr),
"IRegistrar_StringUnregister failed, hr = 0x%08X\n",
hr);
138 skip(
"allocating memory failed\n");
140 IRegistrar_Release(registrar);
151 "CoCreateInstance failed: %08x, expected CLASS_E_NOAGGREGATION\n",
hres);
152 ok(!unk || unk == (
IUnknown*)0xdeadbeef,
"unk = %p\n", unk);
static unsigned char bytes[4]
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyA(HKEY hKey, LPCSTR lpSubKey, PHKEY phkResult)
LONG WINAPI RegQueryValueExA(_In_ HKEY hkeyorg, _In_ LPCSTR name, _In_ LPDWORD reserved, _Out_opt_ LPDWORD type, _Out_opt_ LPBYTE data, _Inout_opt_ LPDWORD count)
#define GetProcAddress(x, y)
#define HeapFree(x, y, z)
#define MultiByteToWideChar
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
GLuint GLuint GLsizei count
static void test_registrar(void)
static void test_aggregation(void)
static const char textA[]
static const WCHAR textW[]
#define CLASS_E_NOAGGREGATION
#define HKEY_CURRENT_USER