[PATCH 1/6] atl100/tests: Added class name test for AtlAxWinInit.
Alexandre Julliard
julliard at winehq.org
Fri Mar 15 08:24:38 CDT 2013
Qian Hong <qhong at codeweavers.com> writes:
> @@ -562,6 +562,34 @@ static void test_source_iface(void)
> ok(maj_ver == 4 && min_ver == 0, "ver = %d.%d\n", maj_ver, min_ver);
> }
>
> +static void test_ax_win(void)
> +{
> + BOOL ret;
> + WNDCLASSEXW wcex;
> + static const WCHAR AtlAxWin100[] = {'A','t','l','A','x','W','i','n','1','0','0',0};
> + static const WCHAR AtlAxWinLic100[] = {'A','t','l','A','x','W','i','n','L','i','c','1','0','0',0};
> + static HMODULE huser32 = 0, hinstance = 0;
> + static BOOL (WINAPI *pGetClassInfoExW)(HINSTANCE, LPCWSTR, WNDCLASSEXW *);
> +
> + huser32 = GetModuleHandleA("user32.dll");
> + pGetClassInfoExW= (void *)GetProcAddress(huser32, "GetClassInfoExW");
It's not useful to load this dynamically if you are not going to check
that it was found.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list