Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The acmFormatChoose function creates an ACM-defined dialog box that enables the user to select a waveform-audio format.
MMRESULT ACMAPI acmFormatChooseW(
LPACMFORMATCHOOSEW pafmtc
);
pafmtc
Pointer to an ACMFORMATCHOOSE structure that contains information used to initialize the dialog box. When this function returns, this structure contains information about the user's format selection.
The pwfx member of this structure must contain a valid pointer to a memory location that will contain the returned format header structure. Moreover, the cbwfx member must be filled in with the size, in bytes, of this memory buffer.
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible return values include the following.
Return code | Description |
---|---|
|
The user chose the Cancel button or the Close command on the System menu to close the dialog box. |
|
The buffer identified by the pwfx member of the ACMFORMATCHOOSE structure is too small to contain the selected format. |
|
At least one flag is invalid. |
|
The specified handle is invalid. |
|
At least one parameter is invalid. |
|
A suitable driver is not available to provide valid format selections. |
Note
The msacm.h header defines ACMFORMATCHOOSE as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | msacm.h |
Library | Msacm32.lib |
DLL | Msacm32.dll |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today