Accessing and Controlling DWM Frame Data
This topic discusses the Desktop Window Manager (DWM) APIs that are used for scheduling and media presentation.
DWM Frame Timing API
The scheduling and media presentation APIs enable more detailed control of when the desktop image is composited and presented. This is typically needed by media and video playback applications for whom the DWM is running asynchronously with their own presentation schedule, which can lead to sampling artifacts if not tightly controlled.
The scheduling and media presentation functions include the following. Details of their use are found on those pages.
- DwmEnableMMCSS. Notifies the DWM to enable Multimedia Class Schedule Service (MMCSS) scheduling while the calling process is alive.
- DwmGetCompositionTimingInfo. Retrieves the current composition timing information.
- DwmModifyPreviousDxFrameDuration. Changes the number of refreshes during which the previous frame will be displayed.
- DwmSetDxFrameDuration. Sets the number of refreshes in which to display the presented frame.
- DwmSetPresentParameters. Sets the present parameters for frame composition.