---
name: "GetDeviceID"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GetDeviceID"
---

# 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"**.
