Mmsystem API timeGetTime

Casper Hornstrup chorns at users.sourceforge.net
Sun Nov 30 08:38:42 CST 2003


How can this API be implemented so it does not have to use
ReleaseThunkLock and RestoreThunkLock (at least the Win32
version)?

DWORD WINAPI timeGetTime(void)
{
    /* FIXME: releasing the win16 lock here is a temporary hack (I hope)
     * that lets mciavi.drv run correctly
     */
    DWORD count;
    ReleaseThunkLock(&count);
    RestoreThunkLock(count);
    TIME_MMTimeStart();
    return WINMM_IData->mmSysTimeMS;
}




More information about the wine-devel mailing list