Time Formatting Macros

The following time formatting macros are available to both MCI drivers and applications. The macros are defined in mmsystem.h and are described in the Win32 SDK.

MCI_HMS_HOUR

Retrieves the hours component from a parameter containing packed hours/minutes/seconds (HMS) information.

MCI_HMS_MINUTE

Retrieves the minutes component from a parameter containing packed hours/minutes/seconds (HMS) information.

MCI_HMS_SECOND

Retrieves the seconds component from a parameter containing packed hours/minutes/seconds (HMS) information.

MCI_MAKE_HMS

Creates a time value in packed hours/minutes/seconds (HMS) format from the given hours, minutes, and seconds values.

MCI_MAKE_MSF

Creates a time value in packed minutes/seconds/frames (MSF) format from the given minutes, seconds, and frame values.

MCI_MAKE_TMSF

Creates a time value in packed tracks/minutes/seconds/frames (TMSF) format from the given tracks, minutes, seconds, and frames values.

MCI_MSF_FRAME

Creates the frames component from a parameter containing packed minutes/seconds/frames (MSF) information.

MCI_MSF_MINUTE

Creates the minutes component from a parameter containing packed minutes/seconds/frames (MSF) information.

MCI_MSF_SECOND

Creates the seconds component from a parameter containing packed minutes/seconds/frames (MSF) information.

MCI_TMSF_FRAME

Retrieves the frames component from a parameter containing packed tracks/minutes/seconds/frames (TMSF) information.

MCI_TMSF_MINUTE

Retrieves the minutes component from a parameter containing packed tracks/minutes/seconds/frames (TMSF) information.

MCI_TMSF_SECOND

Retrieves the seconds component from a parameter containing packed tracks/minutes/seconds/frames (TMSF) information.

MCI_TMSF_TRACK

Retrieves the tracks component from a parameter containing packed tracks/minutes/seconds/frames (TMSF) information.