DRV_QUERYDEVICEINTERFACESIZE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// mmddk.h

DWORD  xxxMessage(
   UINT      uDeviceID,
   UINT      uMsg,
   DWORD_PTR dwParam1,
   DWORD_PTR dwParam2
);
View the official Windows hardware development documentation

NtDoc

No description available.

Windows hardware development documentation (drv-querydeviceinterfacesize)

DRV_QUERYDEVICEINTERFACESIZE function

The DRV_QUERYDEVICEINTERFACESIZE message queries for the size of the buffer required to hold the device-interface name.

Parameters

Return value

The xxxMessage function returns MMSYSERR_NOERROR if the message is handled successfully. Otherwise, it returns an appropriate error code.

Remarks

This message is valid only for the waveInMessage, waveOutMessage, midiInMessage, midiOutMessage, and mixerMessage functions. The system intercepts this message and returns the appropriate value without sending the message to the device driver. For general information about system-intercepted xxxMessage functions, see System-Intercepted Device Messages.

The buffer size retrieved by this message is expressed as a byte count. It specifies the size of the buffer needed to hold the null-terminated Unicode string that contains the device-interface name. The caller allocates a buffer of the specified size and uses the DRV_QUERYDEVICEINTERFACE message to retrieve the device-interface name string.

For more information, see Obtaining a Device Interface Name.

Requirements

Target platform Desktop
Version Supported in Microsoft Windows Me and Windows 2000 and later operating systems.
Header Mmddk.h (include Mmddk.h)

See also

DRV_QUERYDEVICEINTERFACE

midiInMessage

midiOutMessage

mixerMessage

Obtaining a Device Interface Name

System-Intercepted Device Messages

waveInMessage

waveOutMessage