IAudioDeviceEndpoint::WriteExclusiveModeParametersToSharedMemory method

The WriteExclusiveModeParametersToSharedMemory method creates and writes the exclusive-mode parameters to shared memory.

Syntax

HRESULT WriteExclusiveModeParametersToSharedMemory(
  UINT_PTR hTargetProcess,
  HNSTIME  hnsPeriod,
  HNSTIME  hnsBufferDuration,
  UINT32   u32LatencyCoefficient,
  UINT32   *pu32SharedMemorySize,
  UINT_PTR *phSharedMemory
);

Parameters

hTargetProcess

The handle of the process for which the handles will be duplicated.

hnsPeriod

The periodicity, in 100-nanosecond units, of the device. This value must fall within the range of the minimum and maximum periodicity of the device represented by the endpoint.

hnsBufferDuration

The buffer duration, in 100-nanosecond units, requested by the client.

u32LatencyCoefficient

The latency coefficient of the audio endpoint. A client can obtain the actual latency of the endpoint by calling the IAudioEndpoint::GetLatency method.

pu32SharedMemorySize

Receives the size of the memory area shared by the service and the process.

phSharedMemory

Receives a handle to the memory area shared by the service and the process.

Return Value

If the method succeeds, it returns S_OK.

Remarks

This method is used to provide handles and parameters of the audio service of the endpoint to the client process for use in exclusive mode. This method fails if the endpoint object is fully initialized through the IAudioDeviceEndpoint::SetBuffer method call.

The Remote Desktop Services AudioEndpoint API is for use in Remote Desktop scenarios; it is not for client applications.

Requirements

   
Windows version Windows 7 Windows Server 2008 R2
Target Platform Windows
Header audioengineendpoint.h

See Also

IAudioDeviceEndpoint