wined3d: Properly compare integers in wined3d_bo_slab_vk_compare().
[wine.git] / dlls / msacm32 / wineacm.h
blob98d1ab5a2c86625b48285bb4aae2a3b7a12a1b75
1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
2 /*
3 * Copyright 2000 Eric Pouech
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.
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.
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_WINEACM_H
21 #define __WINE_WINEACM_H
23 #include <windef.h>
24 #include <winuser.h>
26 /***********************************************************************
27 * Wine specific - Win32
29 typedef struct _WINE_ACMDRIVERID *PWINE_ACMDRIVERID;
30 typedef struct _WINE_ACMDRIVER *PWINE_ACMDRIVER;
32 #define WINE_ACMOBJ_DONTCARE 0x5EED0000
33 #define WINE_ACMOBJ_DRIVERID 0x5EED0001
34 #define WINE_ACMOBJ_DRIVER 0x5EED0002
35 #define WINE_ACMOBJ_STREAM 0x5EED0003
36 #define WINE_ACMOBJ_NOTIFYWND 0x5EED0004
37 #define WINE_ACMOBJ_LOCALDRIVER 0x5EED0005
39 typedef struct _WINE_ACMOBJ
41 DWORD dwType;
42 PWINE_ACMDRIVERID pACMDriverID;
43 } WINE_ACMOBJ, *PWINE_ACMOBJ;
45 typedef struct _WINE_ACMLOCALDRIVER * PWINE_ACMLOCALDRIVER;
46 typedef struct _WINE_ACMLOCALDRIVERINST * PWINE_ACMLOCALDRIVERINST;
47 typedef struct _WINE_ACMLOCALDRIVER
49 WINE_ACMOBJ obj;
50 HMODULE hModule;
51 DRIVERPROC lpDrvProc;
52 PWINE_ACMLOCALDRIVERINST pACMInstList;
53 PWINE_ACMLOCALDRIVER pNextACMLocalDrv;
54 PWINE_ACMLOCALDRIVER pPrevACMLocalDrv;
55 LONG ref;
56 } WINE_ACMLOCALDRIVER;
58 typedef struct _WINE_ACMLOCALDRIVERINST
60 PWINE_ACMLOCALDRIVER pLocalDriver;
61 DWORD dwDriverID;
62 BOOL bSession;
63 PWINE_ACMLOCALDRIVERINST pNextACMInst;
64 } WINE_ACMLOCALDRIVERINST;
66 typedef struct _WINE_ACMDRIVER
68 WINE_ACMOBJ obj;
69 HDRVR hDrvr;
70 PWINE_ACMLOCALDRIVERINST pLocalDrvrInst;
72 PWINE_ACMDRIVER pNextACMDriver;
73 } WINE_ACMDRIVER;
75 typedef struct _WINE_ACMSTREAM
77 WINE_ACMOBJ obj;
78 PWINE_ACMDRIVER pDrv;
79 ACMDRVSTREAMINSTANCE drvInst;
80 HACMDRIVER hAcmDriver;
81 } WINE_ACMSTREAM, *PWINE_ACMSTREAM;
83 typedef struct _WINE_ACMDRIVERID
85 WINE_ACMOBJ obj;
86 LPWSTR pszDriverAlias;
87 LPWSTR pszFileName;
88 PWINE_ACMLOCALDRIVER pLocalDriver; /* NULL if global */
89 PWINE_ACMDRIVER pACMDriverList;
90 PWINE_ACMDRIVERID pNextACMDriverID;
91 PWINE_ACMDRIVERID pPrevACMDriverID;
92 /* information about the driver itself, either gotten from registry or driver itself */
93 DWORD cFilterTags;
94 DWORD cFormatTags;
95 DWORD fdwSupport;
96 struct {
97 DWORD dwFormatTag;
98 DWORD cbwfx;
99 }* aFormatTag;
100 } WINE_ACMDRIVERID;
102 typedef struct _WINE_ACMNOTIFYWND * PWINE_ACMNOTIFYWND;
103 typedef struct _WINE_ACMNOTIFYWND
105 WINE_ACMOBJ obj;
106 HWND hNotifyWnd; /* Window to notify on ACM events: driver add, driver removal, priority change */
107 DWORD dwNotifyMsg; /* Notification message to send to window */
108 DWORD fdwSupport;
109 PWINE_ACMNOTIFYWND pNextACMNotifyWnd;
110 PWINE_ACMNOTIFYWND pPrevACMNotifyWnd;
111 } WINE_ACMNOTIFYWND;
113 /* From internal.c */
114 extern HANDLE MSACM_hHeap DECLSPEC_HIDDEN;
115 extern PWINE_ACMDRIVERID MSACM_pFirstACMDriverID DECLSPEC_HIDDEN;
116 extern PWINE_ACMDRIVERID MSACM_RegisterDriver(LPCWSTR pszDriverAlias, LPCWSTR pszFileName,
117 PWINE_ACMLOCALDRIVER pLocalDriver) DECLSPEC_HIDDEN;
118 extern void MSACM_RegisterAllDrivers(void) DECLSPEC_HIDDEN;
119 extern PWINE_ACMDRIVERID MSACM_UnregisterDriver(PWINE_ACMDRIVERID p) DECLSPEC_HIDDEN;
120 extern void MSACM_UnregisterAllDrivers(void) DECLSPEC_HIDDEN;
121 extern PWINE_ACMDRIVERID MSACM_GetDriverID(HACMDRIVERID hDriverID) DECLSPEC_HIDDEN;
122 extern PWINE_ACMDRIVER MSACM_GetDriver(HACMDRIVER hDriver) DECLSPEC_HIDDEN;
123 extern PWINE_ACMNOTIFYWND MSACM_GetNotifyWnd(HACMDRIVERID hDriver) DECLSPEC_HIDDEN;
124 extern PWINE_ACMOBJ MSACM_GetObj(HACMOBJ hObj, DWORD type) DECLSPEC_HIDDEN;
126 extern MMRESULT MSACM_Message(HACMDRIVER, UINT, LPARAM, LPARAM) DECLSPEC_HIDDEN;
127 extern BOOL MSACM_FindFormatTagInCache(const WINE_ACMDRIVERID*, DWORD, LPDWORD) DECLSPEC_HIDDEN;
129 extern void MSACM_RePositionDriver(PWINE_ACMDRIVERID, DWORD) DECLSPEC_HIDDEN;
130 extern void MSACM_WriteCurrentPriorities(void) DECLSPEC_HIDDEN;
131 extern void MSACM_BroadcastNotification(void) DECLSPEC_HIDDEN;
132 extern void MSACM_DisableNotifications(void) DECLSPEC_HIDDEN;
133 extern void MSACM_EnableNotifications(void) DECLSPEC_HIDDEN;
134 extern PWINE_ACMNOTIFYWND MSACM_RegisterNotificationWindow(HWND hNotifyWnd, DWORD dwNotifyMsg) DECLSPEC_HIDDEN;
135 extern PWINE_ACMNOTIFYWND MSACM_UnRegisterNotificationWindow(const WINE_ACMNOTIFYWND*) DECLSPEC_HIDDEN;
137 extern PWINE_ACMDRIVERID MSACM_RegisterDriverFromRegistry(LPCWSTR pszRegEntry) DECLSPEC_HIDDEN;
139 extern PWINE_ACMLOCALDRIVER MSACM_RegisterLocalDriver(HMODULE hModule, DRIVERPROC lpDriverProc) DECLSPEC_HIDDEN;
140 extern PWINE_ACMLOCALDRIVERINST MSACM_OpenLocalDriver(PWINE_ACMLOCALDRIVER, LPARAM) DECLSPEC_HIDDEN;
141 extern LRESULT MSACM_CloseLocalDriver(PWINE_ACMLOCALDRIVERINST) DECLSPEC_HIDDEN;
143 extern PWINE_ACMLOCALDRIVER MSACM_GetLocalDriver(HACMDRIVER hDriver);
145 /* From msacm32.c */
146 extern HINSTANCE MSACM_hInstance32 DECLSPEC_HIDDEN;
148 /* From pcmcnvtr.c */
149 LRESULT CALLBACK PCM_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
150 LPARAM dwParam1, LPARAM dwParam2) DECLSPEC_HIDDEN;
152 /* Dialog box templates */
153 #include "msacmdlg.h"
155 #endif /* __WINE_WINEACM_H */