Condividi tramite


IDirectSound8::VerifyCertification Method

[The feature associated with this page, DirectSound, is a legacy feature. It has been superseded by WASAPI and Audio Graphs. Media Casting have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Media Casting instead of DirectSound, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The VerifyCertification method ascertains whether the device driver is certified for DirectX.

Syntax

HRESULT VerifyCertification(
         LPDWORD pdwCertified
)

Parameters

  • pdwCertified
    Address of a DWORD variable that receives one of the values shown in the following table.
    Value Description
    DS_CERTIFIED Driver is certified for DirectSound.
    DS_UNCERTIFIED Driver is not certified for DirectSound.

Return Value

If the function succeeds, the return value is DS_OK.

If the function fails, the return value may be one of the error values shown in the following table.

Return code
DSERR_INVALIDPARAM
DSERR_UNSUPPORTED

Remarks

This method may attempt to retrieve certification information from the Internet.

On emulated devices, the method returns DSERR_UNSUPPORTED. Emulated devices are identified by the DSCAPS_EMULDRIVER flag in the dwFlags member of DSCAPS.

Requirements

Header: Declared in DSound.h.

Library: Use Dsound3d.dll.

See Also

IDirectSound8