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
21 #define NONAMELESSSTRUCT
22 #define NONAMELESSUNION
25 #include "wine/test.h"
28 static void version_test()
34 hr
= GetVersionFromFile("kernel32.dll", &major
, &minor
, FALSE
);
35 ok (hr
== S_OK
, "GetVersionFromFileEx(kernel32.dll) failed, returned "
38 trace("kernel32.dll Language ID: 0x%08lx, Codepage ID: 0x%08lx\n",
42 hr
= GetVersionFromFile("kernel32.dll", &major
, &minor
, TRUE
);
43 ok (hr
== S_OK
, "GetVersionFromFileEx(kernel32.dll) failed, returned "
46 trace("kernel32.dll version: %d.%d.%d.%d\n", HIWORD(major
), LOWORD(major
),
47 HIWORD(minor
), LOWORD(minor
));