This topic has not yet been rated - Rate this topic

DwmEnableMMCSS function

Applies to: desktop apps only

Notifies the Desktop Window Manager (DWM) to opt in to or out of Multimedia Class Schedule Service (MMCSS) scheduling while the calling process is alive.

Syntax

HRESULT WINAPI DwmEnableMMCSS(
  BOOL fEnableMMCSS
);

Parameters

fEnableMMCSS

TRUE to instruct DWM to participate in MMCSS scheduling; FALSE to opt out or end participation in MMCSS scheduling.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

DWM will be scheduled by the MMCSS as long as any process that called DwmEnableMMCSS to enable MMCSS is active and has not previously called DwmEnableMMCSS to disable MMCSS.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Dwmapi.h

Library

Dwmapi.lib

DLL

Dwmapi.dll

 

 

Send comments about this topic to Microsoft

Build date: 2/14/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Sintaxis en VB6
Private Declare Function DwmEnableMMCSS Lib "dwmapi.dll" (ByVal fEnable As Boolean) As Integer
C# syntax
[DllImport("dwmapi.dll")]
public static extern int DwmEnableMMCSS(bool fEnable);
vb.net syntax
<DllImport("dwmapi.dll")> _
Public Shared Function DwmEnableMMCSS(ByVal fEnable As Boolean) As Integer
End Function