Added stubs for NeedRebootInit and NeedReboot.
[wine/wine-kai.git] / dlls / advpack / tests / advpack.c
blobc33563412e5d3bda1865169bf7c18b0995f4946f
1 /*
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
23 #include <windows.h>
25 #include "wine/test.h"
26 #include "advpub.h"
28 static void version_test()
30 HRESULT hr;
31 DWORD major, minor;
33 major = minor = 0;
34 hr = GetVersionFromFile("kernel32.dll", &major, &minor, FALSE);
35 ok (hr == S_OK, "GetVersionFromFileEx(kernel32.dll) failed, returned "
36 "0x%08lx\n", hr);
38 trace("kernel32.dll Language ID: 0x%08lx, Codepage ID: 0x%08lx\n",
39 major, minor);
41 major = minor = 0;
42 hr = GetVersionFromFile("kernel32.dll", &major, &minor, TRUE);
43 ok (hr == S_OK, "GetVersionFromFileEx(kernel32.dll) failed, returned "
44 "0x%08lx\n", hr);
46 trace("kernel32.dll version: %d.%d.%d.%d\n", HIWORD(major), LOWORD(major),
47 HIWORD(minor), LOWORD(minor));
50 START_TEST(advpack)
52 version_test();