问题描述
Hello Friends
Hello Friends
我想监视一个应用程序(一个exe),如果它崩溃或停止,那么我应该能够重启应用程序。换句话说,我不应该让exe在任何时候关闭,直到用户点击应用程序的注销按钮。所以我
想在windows mobile 6.5.3中提供一个服务,它将始终运行并监控这个exe。所以我继续编写服务dll,但我发现它根本没有加载。因此,你们任何人都知道如何使用这个或任何关于如何监控
a exe的新想法。
I want to monitor a application ( a exe ) and if it crasshes or stops then I should be able to restart the application. In other words I should not allow the exe to shut down at any time untill the user clicked the signout button of the application. So I thought to make a service in windows mobile 6.5.3 that will always run and monitor for this exe. So i went ahead and wrote the service dll but I find its not at all loading. So any of you have any idea on how to go with this or any new idea on how to monitor a exe.
注意:我不想创建另一个应用程序将在后台运行并监控exe。
NB: I dont want to create another application that will be running at background and monitor the exe.
推荐答案
假设你正确地创建了服务DLL(在C ++中有正确的入口点)并正确地注册了 ;它作为一项服务,我猜它需要与可信证书签署。
Assuming you created service DLL correctly (in C++ with proper entry points) and correctly registered it as a service then I would guess it needs to be signed with trusted certificate.
这篇关于如何监视应用程序是否始终在Windows Mobile 6.5.3中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!