2 * Unit tests for advpack.dll
4 * Copyright (C) 2005 Robert Reif
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #include "wine/test.h"
27 static HRESULT (WINAPI *pGetVersionFromFile)(LPSTR,LPDWORD,LPDWORD,BOOL);
30 static void version_test()
36 hr = pGetVersionFromFile("kernel32.dll", &major, &minor, FALSE);
37 ok (hr == S_OK, "GetVersionFromFileEx(kernel32.dll) failed, returned "
40 trace("kernel32.dll Language ID: 0x%08lx, Codepage ID: 0x%08lx\n",
44 hr = pGetVersionFromFile("kernel32.dll", &major, &minor, TRUE);
45 ok (hr == S_OK, "GetVersionFromFileEx(kernel32.dll) failed, returned "
48 trace("kernel32.dll version: %d.%d.%d.%d\n", HIWORD(major), LOWORD(major),
49 HIWORD(minor), LOWORD(minor));
56 hdll = LoadLibraryA("advpack.dll");
59 pGetVersionFromFile = (void*)GetProcAddress(hdll, "GetVersionFromFile");
60 if (!pGetVersionFromFile)