winmm: Fix the mmTask*() prototypes.

This commit is contained in:
Francois Gouget 2007-08-30 16:16:14 +02:00 committed by Alexandre Julliard
parent 2264b0c556
commit 7e8a9e3dfb
2 changed files with 13 additions and 13 deletions

View File

@ -2817,7 +2817,7 @@ static DWORD WINAPI mmTaskRun(void* pmt)
/******************************************************************
* mmTaskCreate (WINMM.@)
*/
MMRESULT WINAPI mmTaskCreate(LPTASKCALLBACK cb, HANDLE* ph, DWORD client)
UINT WINAPI mmTaskCreate(LPTASKCALLBACK cb, HANDLE* ph, DWORD_PTR client)
{
HANDLE hThread;
HANDLE hEvent = 0;
@ -2846,7 +2846,7 @@ MMRESULT WINAPI mmTaskCreate(LPTASKCALLBACK cb, HANDLE* ph, DWORD client)
/******************************************************************
* mmTaskBlock (WINMM.@)
*/
void WINAPI mmTaskBlock(HANDLE tid)
VOID WINAPI mmTaskBlock(DWORD tid)
{
MSG msg;
@ -2860,20 +2860,20 @@ void WINAPI mmTaskBlock(HANDLE tid)
/******************************************************************
* mmTaskSignal (WINMM.@)
*/
BOOL WINAPI mmTaskSignal(HANDLE tid)
BOOL WINAPI mmTaskSignal(DWORD tid)
{
return PostThreadMessageW((DWORD)tid, WM_USER, 0, 0);
return PostThreadMessageW(tid, WM_USER, 0, 0);
}
/******************************************************************
* mmTaskYield (WINMM.@)
*/
void WINAPI mmTaskYield(void) {}
VOID WINAPI mmTaskYield(VOID) {}
/******************************************************************
* mmGetCurrentTask (WINMM.@)
*/
HANDLE WINAPI mmGetCurrentTask(void)
DWORD WINAPI mmGetCurrentTask(VOID)
{
return (HANDLE)GetCurrentThreadId();
return GetCurrentThreadId();
}

View File

@ -453,15 +453,15 @@ BOOL WINAPI mciFreeCommandResource(UINT uTable);
BOOL WINAPI DriverCallback(DWORD_PTR dwCallBack, DWORD uFlags, HDRVR hDev,
DWORD wMsg, DWORD_PTR dwUser, DWORD_PTR dwParam1, DWORD_PTR dwParam2);
typedef void (*LPTASKCALLBACK)(DWORD dwInst);
typedef VOID (*LPTASKCALLBACK)(DWORD dwInst);
#define TASKERR_NOTASKSUPPORT 1
#define TASKERR_OUTOFMEMORY 2
MMRESULT WINAPI mmTaskCreate(LPTASKCALLBACK, HANDLE*, DWORD);
void WINAPI mmTaskBlock(HANDLE);
BOOL WINAPI mmTaskSignal(HANDLE);
void WINAPI mmTaskYield(void);
HANDLE WINAPI mmGetCurrentTask(void);
UINT WINAPI mmTaskCreate(LPTASKCALLBACK, HANDLE*, DWORD_PTR);
VOID WINAPI mmTaskBlock(DWORD);
BOOL WINAPI mmTaskSignal(DWORD);
VOID WINAPI mmTaskYield(VOID);
DWORD WINAPI mmGetCurrentTask(VOID);
#ifdef __WINESRC__
#define WAVE_DIRECTSOUND 0x0080