MMSYSTEM.H defines a set of macros that extract information from the packed DWORD that MCI uses to encode time information. Use these macros to extract time and position information from the DWORD:
MCI_HMS_HOUR
Returns the hours field of an argument packed with hours, minutes, and seconds.
MCI_HMS_MINUTE
Returns the minutes field of an argument packed with hours, minutes, and seconds.
MCI_HMS_SECOND
Returns the seconds field of an argument packed with hours, minutes, and seconds.
MCI_MSF_FRAME
Returns the frames field of an argument packed with minutes, seconds, and frames.
MCI_MSF_MINUTE
Returns the minutes field of an argument packed with minutes, seconds, and frames.
MCI_MSF_SECOND
Returns the seconds field of an argument packed with minutes, seconds, and frames.
MCI_TMSF_FRAME
Returns the frames field of an argument packed with tracks, minutes, seconds, and frames.
MCI_TMSF_MINUTE
Returns the minutes field of an argument packed with tracks, minutes, seconds, and frames.
MCI_TMSF_SECOND
Returns the seconds field of an argument packed with tracks, minutes, seconds, and frames.
MCI_TMSF_TRACK
Returns the tracks field of an argument packed with tracks, minutes, seconds, and frames.
MMSYSTEM.H also defines the following macros that combine separate time and position values into the packed DWORD format:
MCI_MAKE_HMS
Creates a DWORD time value in hours/minutes/seconds format from the given hours, minutes, and seconds values.
MCI_MAKE_MSF
Creates a DWORD time value in minutes/seconds/frames format from the given minutes, seconds, and frames values.
MCI_MAKE_TMSF
Creates a DWORD time value in tracks/minutes/seconds/frames format from the given tracks, minutes, seconds, and frames values.