This function plays a multimedia resource, such as a waveform, MIDI, or video, on the default device associated with the resource type. mciPlayResource is a 32-bit function that is also provided as a 16-bit entry point.

#define INCL_MACHDR
#define INCL_MCIOS2
#include <os2.h>

HWND       hwndOwner;     /*  Window handle. */
HMODULE    hmod;          /*  Module handle. */
ULONG      resType;       /*  Resource type. */
ULONG      resID;         /*  Resource identifier. */
ULONG      ulFlags;       /*  Flags. */
PSZ        pszTitle;      /*  Window title. */
HWND       hwndViewport;  /*  Window handle. */
ULONG      rc;            /*  Return code. */

rc = mciPlayResource(hwndOwner, hmod, resType,
       resID, ulFlags, pszTitle, hwndViewport);


[Back] [Next]