Microsoft DirectX 8.0 (C++) |
Retrieves the unique device identifier of the default playback and capture devices selected by the user under Sounds and Multimedia in Control Panel.
HRESULT GetDeviceID( LPCGUID pGuidSrc, LPGUID pGuidDest );
If the function succeeds, the return value is DS_OK.
If the function fails, the return value may be DSERR_INVALIDPARAM.
If pGuidSrc points to a valid device identifier, the same value is returned in pGuidDest. If pGuidSrc is one of the listed constants, pGuidDest returns the address of the corresponding device GUID.
Header: Declared in dsound.h.
Import Library: Use dsound.lib.