Added missing register defines for Linux/PPC.
[wine] / dlls / dinput8 / dinput8_main.c
1 /* DirectInput 8
2  *
3  * Copyright 2002 TransGaming Technologies Inc.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
19
20 #include "config.h"
21 #include <assert.h>
22 #include <string.h>
23
24 #include "wine/debug.h"
25 #include "winbase.h"
26 #include "winerror.h"
27 #include "windef.h"
28 #include "dinput.h"
29
30 WINE_DEFAULT_DEBUG_CHANNEL(dinput);
31
32 /******************************************************************************
33  *      DirectInput8Create (DINPUT8.@)
34  */
35 HRESULT WINAPI DirectInput8Create(
36         HINSTANCE hinst, DWORD dwVersion, REFIID riid, LPVOID *ppDI,
37         LPUNKNOWN punkOuter
38 ) {
39         return DirectInputCreateEx(hinst, dwVersion, riid, ppDI, punkOuter);
40 }
41
42 /***********************************************************************
43  *              DllCanUnloadNow (DINPUT8.@)
44  */
45 HRESULT WINAPI DINPUT8_DllCanUnloadNow(void)
46 {
47     FIXME("(void): stub\n");
48
49     return S_FALSE;
50 }
51
52 /***********************************************************************
53  *              DllGetClassObject (DINPUT8.@)
54  */
55 HRESULT WINAPI DINPUT8_DllGetClassObject(REFCLSID rclsid, REFIID riid,
56                                          LPVOID *ppv)
57 {
58     FIXME("(%p, %p, %p): stub\n", debugstr_guid(rclsid),
59           debugstr_guid(riid), ppv);
60
61     return CLASS_E_CLASSNOTAVAILABLE;
62 }
63
64 /***********************************************************************
65  *              DllRegisterServer (DINPUT8.@)
66  */
67 HRESULT WINAPI DINPUT8_DllRegisterServer(void)
68 {
69     FIXME("(void): stub\n");
70
71     return S_OK;
72 }
73
74 /***********************************************************************
75  *              DllUnregisterServer (DINPUT8.@)
76  */
77 HRESULT WINAPI DINPUT8_DllUnregisterServer(void)
78 {
79     FIXME("(void): stub\n");
80
81     return S_OK;
82 }