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)) 
 

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mmsystem.h.

See Also

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