为Windows服务启用硬件加速 [英] Enable Hardware Acceleration for Windows Services

查看:90
本文介绍了为Windows服务启用硬件加速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,¥b $ b 我在使用Matrox Imaging Library的Windows服务中使用Windows Service C#和top shelf(在Windows服务项目中启用控制台应用程序以进行调试)创建了一个Windows服务。作为windows
服务c#和控制台应用程序,一切都运行良好。现在我面临的一个小问题是,当我运行我的Windows服务c#作为控制台应用程序然后它处理状态作为硬件加速其他当运行作为Windows服务
的Windows 10中注册的Windows服务然后它的处理状态是软件实现。 我尝试了很多解决方案,如任务调度程序,AlwaysUp应用程序,Session 0的东西,试图从另一个控制台应用程序内部启动这个Windows服务都显示'软件
实现'但我找不到一个完美的解决方案。需要一些快速建议。谢谢  

Hello,
  I Created a windows service using Windows Service C# and top shelf (to enable console application over windows service project for debugging) in the windows service i am working with Matrox Imaging Library . Everything is working fine both as a windows service c# and console application. Now there is a little problem i am facing is that when ever i run my windows service c# as console application then it's processing status as hardware acceleration else when ever run as windows service registered in Service of windows 10 then it's processing status is software implementation.  I tried a lot of solutions such as task scheduler, AlwaysUp application, Session 0 stuff, tried to start this windows service from inside another console app all are showing 'Software Implementation' but i can't find a perfect solution. Need some Quick Suggestions. Thanks  

推荐答案

您如何设置此"硬件加速""你提到的事情。这是您正在使用的库的一个功能吗?

How are you setting this "hardware acceleration" thing that you mention. Is this a feature of the library you're using?

如果是这样,那么您需要在他们的论坛中发布您的问题,因为他们可能正在查看运行时环境并确定支持的内容。服务将无法访问桌面,因此如果库正在从用户设置
查找信息,那么它将找不到任何内容。暂时的解决方法是在按照您希望的方式配置的用户帐户下运行服务(或任务)。但是,再次,这将取决于图书馆作者的代码,所以你需要问他们。

If so then you'll need to post your question in their forums as they are likely looking at the runtime environment and determining what is supported. A service won't have access to the desktop so if the library is looking for information from the user settings then it won't find anything. The workaround, temporarily, would be to run the service (or task) under a user account that is configured the way you want. But, again, this would be dependent upon the library writer's code so you'll need to ask them.


这篇关于为Windows服务启用硬件加速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆