MEVT_EVENTTYPE

The MEVT_EVENTTYPE macro retrieves the event type from the value specified in the dwEvent member of a MIDIEVENT structure.

BYTE MEVT_EVENTTYPE(
  DWORD dwEvent  
);

Parameters

dwEvent

Code for the MIDI event and the event parameters or length, as specified in the dwEvent member of the MIDIEVENT structure.

Remarks

The MEVT_EVENTTYPE macro is defined as follows:

#define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF)) 

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Mmsystem.h; include Windows.h.

See Also

Musical Instrument Digital Interface (MIDI), MIDI Macros, MIDIEVENT