43" ForceRemove eebf73c4-50fd-478f-bbcf-db212221227a \n"
45" val 'str1' = s 'string' \n"
46" val 'str2' = s 'str\\\"ing' \n"
47" val 'str3' = s 'str''ing' \n"
48" val 'dword_quoted_dec' = d '1' \n"
49" val 'dword_unquoted_dec' = d 1 \n"
50" val 'dword_quoted_hex' = d '0xA' \n"
51" val 'dword_unquoted_hex' = d 0xA \n"
52" val 'dword_negative' = d -2147483648 \n"
53" val 'dword_ulong' = d 2147483649 \n"
54" val 'dword_max' = d 4294967295 \n"
55" val 'dword_overrange' = d 4294967296 \n"
56" val 'binary_quoted' = b 'deadbeef' \n"
57" val 'binary_unquoted' = b dead0123 \n"
75 {
"dword_unquoted_dec",
TRUE, 1 },
76 {
"dword_quoted_dec",
TRUE, 1 },
77 {
"dword_quoted_hex",
FALSE, 0xA },
78 {
"dword_unquoted_hex",
FALSE, 0xA },
79 {
"dword_negative",
FALSE, -2147483648 },
80 {
"dword_ulong",
TRUE, 2147483649 },
81 {
"dword_max",
TRUE, 4294967295 },
82 {
"dword_overrange",
FALSE, 4294967296 },
87 win_skip(
"Old versions of atl.dll don't support binary values\n");
94 win_skip(
"creating IRegistrar failed, hr = 0x%08lX\n",
hr);
110 hr = IRegistrar_StringRegister(registrar,
textW);
111 ok(
hr ==
S_OK,
"StringRegister failed: %08lx\n",
hr);
114 IRegistrar_Release(registrar);
123 ok(lret ==
ERROR_SUCCESS,
"RegQueryValueExA failed, error %ld\n", lret);
128 ok(lret ==
ERROR_SUCCESS,
"RegQueryValueExA failed, error %ld\n", lret);
133 ok(lret ==
ERROR_SUCCESS,
"RegQueryValueExA failed, error %ld\n", lret);
138 size =
sizeof(dword);
140 ok(lret ==
ERROR_SUCCESS,
"Test %d: RegQueryValueExA failed %ld.\n",
i, lret);
141 if (dword_tests[
i].preserved)
142 ok(dword == dword_tests[
i].
value,
"Test %d: got unexpected value %lu.\n",
i, dword);
144 ok(dword != dword_tests[
i].
value,
"Test %d: is not supposed to be preserved.\n",
i);
149 ok(lret ==
ERROR_SUCCESS,
"RegQueryValueA, failed, error %ld\n", lret);
151 "binary quoted value was not preserved (it's 0x%02X%02X%02X%02X)\n",
156 ok(lret ==
ERROR_SUCCESS,
"RegQueryValueA, failed, error %ld\n", lret);
158 "binary unquoted value was not preserved (it's 0x%02X%02X%02X%02X)\n",
161 hr = IRegistrar_StringUnregister(registrar,
textW);
162 ok(
SUCCEEDED(
hr),
"IRegistrar_StringUnregister failed, hr = 0x%08lX\n",
hr);
168 skip(
"allocating memory failed\n");
170 IRegistrar_Release(registrar);
181 "CoCreateInstance failed: %08lx, expected CLASS_E_NOAGGREGATION\n",
hres);
182 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)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, IUnknown *outer, DWORD cls_context, REFIID riid, void **obj)
#define GetProcAddress(x, y)
#define HeapFree(x, y, z)
#define MultiByteToWideChar
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
_ACRTIMP int __cdecl strcmp(const char *, const char *)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
GLuint GLuint GLsizei count
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
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