Jump to content

mdmDriverNotify

From EDM2
Revision as of 02:32, 26 November 2025 by Martini (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function is called from MCDs to return messages to applications. Returned information includes command status, cuepoints, position changes, playlist messages, and device specific events.

Syntax

_mdmDriverNotify(usDeviceID, hwnd, usMsgType, usUserParm, ulMsgParm)

Parameters

usDeviceID (USHORT) - input
Device ID to be associated with this message.
hwnd (HWND) - input
The window handle used to post or send message to application.
usMsgType (USHORT) - input
Type of notification:
usUserParm (USHORT) - input
User-defined parameter.
ulMsgParm (ULONG) - input
Message-defined parameter.

Returns

rc (ULONG) - returns
Return codes indicating success or type of failure:
  • MCI_NOTIFY_SUCCESS If the function succeeds, 0 is returned.
  • MM_MCIPOSITIONCHANGE The media position in MMTIME units.
  • MM_MCICUEPOINT Media position in MMTIME units.
  • MM_MCIPLAYLISTMESSAGE Parameter specified by playlist message instruction (Operand 2).
  • MM_MCIEVENT Device-specific parameter.

Remarks

This section has no remarks.

Example Code

#define INCL_MMIO
#include <os2.h>

USHORT usDeviceID;   /* Device ID for message. */
HWND hwnd;           /* Window handle. */
USHORT usMsgType;    /* Notification type. */
USHORT usUserParm;   /* User-defined. */
ULONG ulMsgParm;     /* Message-defined. */
ULONG rc;            /* Return codes. */

rc = mdmDriverNotify(usDeviceID, hwnd, usMsgType,
        usUserParm, ulMsgParm);

Related Methods