Reference

GetDeviceID(3w)

NAME

GetDeviceID (DSOUND.9)

SYNOPSIS

HRESULT GetDeviceID
(
LPCGUID pGuidSrc,
LPGUID pGuidDest
)

DESCRIPTION

Retrieves unique identifier of default device specified.

PARAMS

pGuidSrc [In] Address of device GUID.

pGuidDest [Out] Address to receive unique device GUID.

RETURNS

Success: DS_OK

Failure: DSERR_INVALIDPARAM.

NOTES

pGuidSrc is a valid device GUID or DSDEVID_DefaultPlayback, DSDEVID_DefaultCapture, DSDEVID_DefaultVoicePlayback, or DSDEVID_DefaultVoiceCapture. Returns pGuidSrc if pGuidSrc is a valid device or the device GUID for the specified constants.

IMPLEMENTATION

Declared in "dsound.h".

Implemented in "dlls/dsound/dsound_main.c".

Debug channel "dsound".

History