Windows Multimedia DDK (mddkqh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MIDIHDR
                                                 Contents Index Back
────────────────────────────────────────────────────────────────────────────
MIDIHDR
 
        The MIDIHDR structure defines the header used to identify a MIDI
        system-exclusive data buffer.
 
        typedef struct midihdr_tag {
            LPSTR lpData;
            DWORD dwBufferLength;
            DWORD dwBytesRecorded;
            DWORD dwUser;
            DWORD dwFlags;
            struct midihdr_tag far * lpNext;
            DWORD reserved;
        } MIDIHDR;
 
Fields
        LPSTR lpData
            Specifies a far pointer to the system-exclusive data buffer.
 
        DWORD dwBufferLength
            Specifies the length of the data buffer.
 
        DWORD dwBytesRecorded
            When the header is used in input, this specifies how much
            data is in the buffer.
 
        DWORD dwUser
            Specifies user data.
 
        DWORD dwFlags
            Specifies flags giving information about the data buffer.
 
            MHDR_DONE
                Set by the device driver to indicate that it is
                finished with the data buffer and is returning it to the
                application.
 
            MHDR_PREPARED
                Set by the device driver to indicate that the data buffer
                has been prepared with midiInPrepareHeader or
                midiOutPrepareHeader.
 
            MHDR_INQUEUE
                Set by the device driver to indicate that the data buffer
                is queued for playback.
 
        struct midihdr_tag far * lpNext
            Is reserved for use by the device driver to point to the next
            MIDIHDR structure in the queue.
 
        DWORD reserved
            Is reserved for use by the device driver. This field can be
            used to store a pointer to a structure containing information
            about the client.
 
                                       -♦-