IWTSProtocolConnection::SendBeep method (wtsprotocol.h)

[IWTSProtocolConnection::SendBeep is no longer available for use as of Windows Server 2012.]

Sends a sound pulse to the console speaker on the client.

The beep() function does not cause SendBeep to be called. To work around this issue, the user must enable Remote Desktop Services audio redirection capabilities to remotely hear beep sounds.

Syntax

HRESULT SendBeep(
  [in] ULONG Frequency,
  [in] ULONG Duration
);

Parameters

[in] Frequency

An integer that contains the pulse frequency ranging from 37 to 32,767 Hertz.

[in] Duration

An integer that contains the pulse duration, in milliseconds.

Return value

None

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header wtsprotocol.h

See also

IWTSProtocolConnection