Don't allow comctl32 controls to access their infoPtr before it has
[wine] / dlls / dinput / dinput_private.h
1 #ifndef __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H
2 #define __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H
3
4 #include "winbase.h"
5 #include "dinput.h"
6
7 /* Implementation specification */
8 typedef struct IDirectInputAImpl IDirectInputAImpl;
9 struct IDirectInputAImpl
10 {
11         ICOM_VFIELD(IDirectInputA);
12         DWORD                   ref;
13
14         /* Used to have an unique sequence number for all the events */
15         DWORD evsequence;
16 };
17
18 /* Function called by all devices that Wine supports */
19 typedef struct dinput_device {
20   INT pref;
21   BOOL (*enum_device)(DWORD dwDevType, DWORD dwFlags, LPCDIDEVICEINSTANCEA lpddi);
22   HRESULT (*create_device)(IDirectInputAImpl *dinput, REFGUID rguid, REFIID riid, LPDIRECTINPUTDEVICEA* pdev);
23 } dinput_device;
24
25 extern void dinput_register_device(dinput_device *device) ;
26
27 #endif /* __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H */