mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +00:00
* This is a TEMPORARY commit of some WINMM stubs to get comctl32 to compile, as requested by Steven. I am going to continue working on porting this over from WINE, but won't commit my changes until it compiles and links properly.
svn path=/trunk/; revision=5858
This commit is contained in:
parent
5265ea1787
commit
2721685576
|
@ -8,7 +8,7 @@ TARGET_NAME = winmm
|
|||
|
||||
TARGET_BASE = 0x777c0000
|
||||
|
||||
TARGET_CFLAGS = -D__WINE_FOR_REACTOS__
|
||||
TARGET_CFLAGS =
|
||||
|
||||
# require os code to explicitly request A/W version of structs/functions
|
||||
TARGET_CFLAGS += -D_DISABLE_TIDENTS
|
||||
|
@ -16,9 +16,7 @@ TARGET_CFLAGS += -D_DISABLE_TIDENTS
|
|||
TARGET_SDKLIBS = ntdll.a kernel32.a
|
||||
|
||||
TARGET_OBJECTS = \
|
||||
winmm.o \
|
||||
lolvldrv.o \
|
||||
driver.o
|
||||
stubs.o
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
|
|
40
reactos/lib/winmm/stubs.c
Normal file
40
reactos/lib/winmm/stubs.c
Normal file
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
AG: These are just temporary stubs for comctl32.dll - I am working on
|
||||
porting WinMM over, offline. Once it compiles and links, I will commit
|
||||
it.
|
||||
*/
|
||||
|
||||
|
||||
#include <windows.h>
|
||||
typedef UINT *LPUINT;
|
||||
#include <mmsystem.h>
|
||||
|
||||
MMRESULT WINAPI mmioAscend(HMMIO hmmio, LPMMCKINFO lpck, UINT wFlags)
|
||||
{
|
||||
return MMSYSERR_NOERROR;
|
||||
}
|
||||
|
||||
MMRESULT WINAPI mmioClose(HMMIO hmmio, UINT wFlags)
|
||||
{
|
||||
return MMSYSERR_NOERROR;
|
||||
}
|
||||
|
||||
MMRESULT WINAPI mmioDescend(HMMIO hmmio, LPMMCKINFO lpck, const MMCKINFO* lpckParent, UINT wFlags)
|
||||
{
|
||||
return MMSYSERR_NOERROR;
|
||||
}
|
||||
|
||||
HMMIO WINAPI mmioOpenA(LPSTR szFilename, LPMMIOINFO lpmmioinfo, DWORD dwOpenFlags)
|
||||
{
|
||||
return 12345;
|
||||
}
|
||||
|
||||
LONG WINAPI mmioRead(HMMIO hmmio, HPSTR pch, LONG cch)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
LONG WINAPI mmioSeek(HMMIO hmmio, LONG lOffset, int iOrigin)
|
||||
{
|
||||
return 0;
|
||||
}
|
|
@ -1,23 +1,23 @@
|
|||
LIBRARY WINMM.DLL
|
||||
EXPORTS
|
||||
joyGetDevCapsA=joyGetDevCapsA@12
|
||||
joyGetNumDevs=joyGetNumDevs@0
|
||||
joyGetPosEx=joyGetPosEx@8
|
||||
mciSendCommandA=mciSendCommandA@16
|
||||
midiOutReset=midiOutReset@4
|
||||
midiOutClose=midiOutClose@4
|
||||
midiOutUnprepareHeader=midiOutUnprepareHeader@12
|
||||
sndPlaySoundA=sndPlaySoundA@8
|
||||
sndPlaySoundW=sndPlaySoundW@8
|
||||
waveOutReset=waveOutReset@4
|
||||
waveOutWrite=waveOutWrite@12
|
||||
waveOutPrepareHeader=waveOutPrepareHeader@12
|
||||
waveOutGetErrorTextA=waveOutGetErrorTextA@12
|
||||
waveOutOpen=waveOutOpen@24
|
||||
waveOutClose=waveOutClose@4
|
||||
waveOutUnprepareHeader=waveOutUnprepareHeader@12
|
||||
midiOutPrepareHeader=midiOutPrepareHeader@12
|
||||
midiOutLongMsg=midiOutLongMsg@12
|
||||
timeBeginPeriod=timeBeginPeriod@4
|
||||
timeEndPeriod=timeEndPeriod@4
|
||||
timeGetTime=timeGetTime@0
|
||||
;joyGetDevCapsA=joyGetDevCapsA@12
|
||||
;joyGetNumDevs=joyGetNumDevs@0
|
||||
;joyGetPosEx=joyGetPosEx@8
|
||||
;mciSendCommandA=mciSendCommandA@16
|
||||
;midiOutReset=midiOutReset@4
|
||||
;midiOutClose=midiOutClose@4
|
||||
;midiOutUnprepareHeader=midiOutUnprepareHeader@12
|
||||
;sndPlaySoundA=sndPlaySoundA@8
|
||||
;sndPlaySoundW=sndPlaySoundW@8
|
||||
;waveOutReset=waveOutReset@4
|
||||
;waveOutWrite=waveOutWrite@12
|
||||
;waveOutPrepareHeader=waveOutPrepareHeader@12
|
||||
;waveOutGetErrorTextA=waveOutGetErrorTextA@12
|
||||
;waveOutOpen=waveOutOpen@24
|
||||
;waveOutClose=waveOutClose@4
|
||||
;waveOutUnprepareHeader=waveOutUnprepareHeader@12
|
||||
;midiOutPrepareHeader=midiOutPrepareHeader@12
|
||||
;midiOutLongMsg=midiOutLongMsg@12
|
||||
;timeBeginPeriod=timeBeginPeriod@4
|
||||
;timeEndPeriod=timeEndPeriod@4
|
||||
;timeGetTime=timeGetTime@0
|
||||
|
|
Loading…
Reference in a new issue