다음을 통해 공유


IMMNotificationClient::OnDeviceAdded

Previous Next

IMMNotificationClient::OnDeviceAdded

The OnDeviceAdded method indicates that a new audio endpoint device has been added.

HRESULT OnDeviceAdded(
  LPCWSTR  pwstrDeviceId
);

Parameters

pwstrDeviceId

[in]  Pointer to the endpoint ID string that identifies the audio endpoint device. This parameter points to a null-terminated, wide-character string containing the endpoint ID. The string remains valid for the duration of the call.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

For a code example that implements the OnDeviceAdded method, see Device Events.

Requirements

Client: Windows Vista

Header: Include Mmdeviceapi.h.

See Also

Previous Next