waveOutGetID
------
这是它的帮助
MMRESULT waveOutGetID(HWAVEOUT hwo, LPUINT puDeviceID);  Retrieves the device identifier for the given waveform-audio output device.
This function is supported for backward compatibility. New applications can cast a handle of the device rather than retrieving the device identifier.?Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following:MMSYSERR_INVALHANDLE The hwo parameter specifies an invalid handle.
MMSYSERR_NODRIVER No device driver is present.
MMSYSERR_NOMEM Unable to allocate or lock memory.
hwoHandle of the waveform-audio output device.puDeviceIDAddress of a variable to be filled with the device identifier.
--------------------
The waveOutGetID function retrieves the device identifier for the given waveform-audio output device.This function is supported for backward compatibility. New applications can cast a handle of the device rather than retrieving the device identifier.MMRESULT waveOutGetID(    HWAVEOUT hwo,
    LPUINT puDeviceID
   );
 ParametershwoHandle of the waveform-audio output device.puDeviceIDAddress of a variable to be filled with the device identifier. Return ValuesReturns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following:MMSYSERR_INVALHANDLE The hwo parameter specifies an invalid handle.
MMSYSERR_NODRIVER No device driver is present.
MMSYSERR_NOMEM Unable to allocate or lock memory.

解决方案 »

  1.   

    Parameters
    hwo
    Handle of the waveform-audio output device.
    puDeviceID
    Address of a variable to be filled with //the device identifier.应该是设备名吧
    --------------------
    The waveOutGetID function retrieves the device identifier for the given waveform-audio output device.
    感觉两个意思差不多一样,找个E文好些的,也许能看懂
      

  2.   

    可以这样子声明,必须从WinMM.dll中导出来。
    function waveOutGetID(hwo:Handle; puDeviceID:PLongint) :HResult; stdcall; external 'WinMM.dll' name 'waveOutGetID';
    我没接触过这方面的东东,所以帮不了楼主了
    ^_^
      

  3.   

    刚才没发出去,白写了,再写一遍这个函数在mmsystem单元中有声明,它的作用是根据音频输出设备的句柄得到设备的ID号。
    这个函数是为了向下兼容而设的。现在基本上不用它,直接用设备句柄来操控就可以了。