ReactOS  0.4.15-dev-2961-gecb0c09
winemm16.h
Go to the documentation of this file.
1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
2 
3 /*****************************************************************************
4  * Copyright 1998, Luiz Otavio L. Zorzella
5  * 1999, Eric Pouech
6  *
7  * Purpose: multimedia declarations (internal to WINMM & MMSYSTEM DLLs)
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *****************************************************************************
23  */
24 #include "winemm.h"
25 #include "wine/mmsystem16.h"
26 #include "wownt32.h"
27 
28 /* mmsystem (16 bit files) only functions */
29 void MMDRV_Init16(void);
30 void MMSYSTEM_MMTIME16to32(LPMMTIME mmt32, const MMTIME16* mmt16);
31 void MMSYSTEM_MMTIME32to16(LPMMTIME16 mmt16, const MMTIME* mmt32);
32 
33 typedef LONG (*MCIPROC16)(DWORD, HDRVR16, WORD, DWORD, DWORD);
34 
35 /* HANDLE16 -> HANDLE conversions */
36 #define HDRVR_32(h16) ((HDRVR)(ULONG_PTR)(h16))
37 #define HMIDI_32(h16) ((HMIDI)(ULONG_PTR)(h16))
38 #define HMIDIIN_32(h16) ((HMIDIIN)(ULONG_PTR)(h16))
39 #define HMIDIOUT_32(h16) ((HMIDIOUT)(ULONG_PTR)(h16))
40 #define HMIDISTRM_32(h16) ((HMIDISTRM)(ULONG_PTR)(h16))
41 #define HMIXER_32(h16) ((HMIXER)(ULONG_PTR)(h16))
42 #define HMIXEROBJ_32(h16) ((HMIXEROBJ)(ULONG_PTR)(h16))
43 #define HMMIO_32(h16) ((HMMIO)(ULONG_PTR)(h16))
44 #define HWAVE_32(h16) ((HWAVE)(ULONG_PTR)(h16))
45 #define HWAVEIN_32(h16) ((HWAVEIN)(ULONG_PTR)(h16))
46 #define HWAVEOUT_32(h16) ((HWAVEOUT)(ULONG_PTR)(h16))
47 
48 /* HANDLE -> HANDLE16 conversions */
49 #define HDRVR_16(h32) (LOWORD(h32))
50 #define HMIDI_16(h32) (LOWORD(h32))
51 #define HMIDIIN_16(h32) (LOWORD(h32))
52 #define HMIDIOUT_16(h32) (LOWORD(h32))
53 #define HMIDISTRM_16(h32) (LOWORD(h32))
54 #define HMIXER_16(h32) (LOWORD(h32))
55 #define HMIXEROBJ_16(h32) (LOWORD(h32))
56 #define HMMIO_16(h32) (LOWORD(h32))
57 #define HWAVE_16(h32) (LOWORD(h32))
58 #define HWAVEIN_16(h32) (LOWORD(h32))
59 #define HWAVEOUT_16(h32) (LOWORD(h32))
#define DWORD
Definition: nt_native.h:44
long LONG
Definition: pedump.c:60
LONG(* MCIPROC16)(DWORD, HDRVR16, WORD, DWORD, DWORD)
Definition: winemm16.h:33
unsigned short WORD
Definition: ntddk_ex.h:93
void MMSYSTEM_MMTIME16to32(LPMMTIME mmt32, const MMTIME16 *mmt16)
void MMSYSTEM_MMTIME32to16(LPMMTIME16 mmt16, const MMTIME *mmt32)
void MMDRV_Init16(void)