public static extern int timeGetSystemTime(ref MMTIME lpTime, int uSize);
public static extern int waveOutGetPosition(IntPtr hWaveOut, ref MMTIME lpInfo, int uSize);
public static extern int midiStreamPosition(IntPtr hms, ref MMTIME lpmmt, int cbmmt);