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.
------
这是它的帮助
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.
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文好些的,也许能看懂
function waveOutGetID(hwo:Handle; puDeviceID:PLongint) :HResult; stdcall; external 'WinMM.dll' name 'waveOutGetID';
我没接触过这方面的东东,所以帮不了楼主了
^_^
这个函数是为了向下兼容而设的。现在基本上不用它,直接用设备句柄来操控就可以了。