我正在使用Windows 7 RTM,我想知道控制面板如何能够如此顺利地更新Aero Glass颜色而无需重新启动DWM(uxsms)。 DwmSetColorizationColor不再工作了......
答案 0 :(得分:11)
您应该对以下方法感兴趣:
[DllImport("dwmapi.dll", EntryPoint = "#127", PreserveSig = false)]
public static extern void DwmGetColorizationParameters(out WDM_COLORIZATION_PARAMS parameters);
[DllImport("dwmapi.dll", EntryPoint = "#131", PreserveSig = false)]
public static extern void DwmSetColorizationParameters(WDM_COLORIZATION_PARAMS parameters, uint uUnknown);
public struct WDM_COLORIZATION_PARAMS {
public uint Color1;
public uint Color2;
public uint Intensity;
public uint Unknown1;
public uint Unknown2;
public uint Unknown3;
public uint Opaque;
}
确保在调用DwmSetColorizationParameters方法之前调用DwmIsCompositionEnabled,否则它将失败。
正如您所看到的,一些参数/属性是未知的 有关详细信息,请参阅link (in German)