Enabling/Disabling Aero from a Windows Service

前端 未结 2 1368
我在风中等你
我在风中等你 2021-01-27 01:27

I have some code to enable/disable the Windows Aero service in Vista, and I would like to run it in a Windows Service. The code works in a standalone application, but when I run

2条回答
  •  醉话见心
    2021-01-27 02:08

    I had the same error code, when creating WPF FlowDocuments through a service running under 64-bit Vista. After digging around I can accross this post on Microsoft Connect, which points out that

    "... The problem is caused by an interop problem with the DWM ..."

    and

    "... it will fix the WPF crash in all services including IIS7 ..."

    Here is the direct link to the hot-fix downloads; KB 959209

    This fixed our problems with running unit tests through CruiseControl.Net (CCNet) running 64-bit Vista. The tests where fine when not running through a service.

提交回复
热议问题