The WriteExclusiveModeParametersToSharedMemory method creates and writes the exclusive-mode parameters to shared memory.
HRESULT WriteExclusiveModeParametersToSharedMemory( UINT_PTR hTargetProcess, HNSTIME hnsPeriod, HNSTIME hnsBufferDuration, UINT32 u32LatencyCoefficient, UINT32 *pu32SharedMemorySize, UINT_PTR *phSharedMemory );
The handle of the process for which the handles will be duplicated.
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.
The buffer duration, in 100-nanosecond units, requested by the client.
The latency coefficient of the audio endpoint. A client can obtain the actual latency of the endpoint by calling the IAudioEndpoint::GetLatency method.
Receives the size of the memory area shared by the service and the process.
Receives a handle to the memory area shared by the service and the process.
If the method succeeds, it returns S_OK.
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.
|Windows version||Windows 7 Windows Server 2008 R2|