Added parser template and made AVISplitter use it.
[wine] / dlls / advpack / tests / advpack.c
1 /*
2  * Unit tests for advpack.dll
3  *
4  * Copyright (C) 2005 Robert Reif
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #define NONAMELESSSTRUCT
22 #define NONAMELESSUNION
23 #include <windows.h>
24
25 #include "wine/test.h"
26 #include "advpub.h"
27
28 static void version_test()
29 {
30     HRESULT hr;
31     DWORD major, minor;
32
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);
37
38     trace("kernel32.dll Language ID: 0x%08lx, Codepage ID: 0x%08lx\n",
39            major, minor);
40
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);
45
46     trace("kernel32.dll version: %d.%d.%d.%d\n", HIWORD(major), LOWORD(major),
47           HIWORD(minor), LOWORD(minor));
48 }
49
50 START_TEST(advpack)
51 {
52     version_test();
53 }