GetSafeHwnd(),MSG_STATUS_TOTAL,(WPARAM)&msg,0);CExitWindowsm_ExitWindows;//m_ExitWindows.Restart();m_ExitWindows.ForceReStart();}關閉程式:///關閉程式boolCWatchDogDlg::closeExeProcess(CStringprocessName){processName.MakeLower();HANDLEhSnapShot;PROCESSENTRY32pEntry;pEntry.dwSize=sizeof(pEntry);BOOLhRes;boolFound=FALSE;//GetthesnapshotofthesystemhSnapShot=CreateToolhelp32Snapshot(TH32CS_SNAPALL,NULL);//Getfirs-IMDN开发者社群-imdn.cn"> GetSafeHwnd(),MSG_STATUS_TOTAL,(WPARAM)&msg,0);CExitWindowsm_ExitWindows;//m_ExitWindows.Restart();m_ExitWindows.ForceReStart();}關閉程式:///關閉程式boolCWatchDogDlg::closeExeProcess(CStringprocessName){processName.MakeLower();HANDLEhSnapShot;PROCESSENTRY32pEntry;pEntry.dwSize=sizeof(pEntry);BOOLhRes;boolFound=FALSE;//GetthesnapshotofthesystemhSnapShot=CreateToolhelp32Snapshot(TH32CS_SNAPALL,NULL);//Getfirs - IMDN开发者社群-imdn.cn">
登录
首页 » Windows开发 » watchDog可偵測程式是否關閉

watchDog可偵測程式是否關閉

于 2022-02-16 发布 文件大小:2.34 MB
0 144
下载积分: 2 下载次数: 1

代码说明:

可將執行中的程式,關閉,及重開。亦可以透過socket連線,來偵測是否程式已死當。其相關重要功能:重開機功能://重新開機void CWatchDogDlg::setSystemReboot(){msg = "準備關機重開!";::SendMessage(this->GetSafeHwnd(),MSG_STATUS_TOTAL,(WPARAM)&msg,0);CExitWindows m_ExitWindows;//m_ExitWindows.Restart(); m_ExitWindows.ForceReStart();}關閉程式:///關閉程式bool CWatchDogDlg::closeExeProcess(CString processName){processName.MakeLower();HANDLE hSnapShot;PROCESSENTRY32 pEntry;pEntry.dwSize =sizeof(pEntry);BOOL hRes;bool Found = FALSE;//Get the snapshot of the systemhSnapShot=CreateToolhelp32Snapshot (TH32CS_SNAPALL,NULL);//Get firs

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 磁卡机函数用于先达磁卡机
    磁卡机开发函数用于先达磁卡机-card machine development function for the first of 1,500 machines
    2022-06-17 05:00:56下载
    积分:1
  • c#登陆及数据传递
    方法一:  窗体一:this.Tag=对象1;   this.Tag = mm; 窗体二:对象所属类名 对象2 = 窗体一名.Tag  as 对象所属类名;user xx=   lgn.Tag as
    2023-08-30 15:50:02下载
    积分:1
  • 一个非常好用的线程池的C++源代码,经典
    一个非常好用的线程池的C++源代码,经典-A very useful thread pool C++ Source code, the classic
    2022-03-25 04:07:04下载
    积分:1
  • vc++2005+ae9.2载入地图文档
    vc++2005+ae9.2载入地图文档-vc++ 2005+ ae9.2 loading map documents
    2022-07-28 01:31:04下载
    积分:1
  • 这是一个计算器的源程序,这个程序可实现计算器模拟实验.
    这是一个计算器的源程序,这个程序可实现计算器模拟实验.-This is a calculator of the source, this procedure could realize simulation calculator.
    2022-06-20 15:16:34下载
    积分:1
  • 在C++也解调锁相调制文件
    PLL Modulation Document in c++ also demodulation-PLL Modulation Document in c++ also demodulation...
    2022-02-05 04:46:01下载
    积分:1
  • 可以移动对话框窗口到任何一个位置,方便了用户的使用
    可以移动对话框窗口到任何一个位置,方便了用户的使用-Dialog window can be moved to any one location and make it easier for users
    2022-03-15 15:24:32下载
    积分:1
  • 杀防火墙代码的制作
    杀防火墙代码的制作-scrapping the production code firewall
    2023-04-03 18:35:04下载
    积分:1
  • 这是我自己在学习VB过程中所编的一个钟的程序,不知道能不能行...
    这是我自己在学习VB过程中所编的一个钟的程序,不知道能不能行-This was my learning process VB series by a 10-minute procedure, I do not know whether or not OK
    2022-01-25 18:58:25下载
    积分:1
  • Man
    文-语转换即Text-to-Speech,简称为TTS,这种技术已经广泛地运用到各种信息查询台、机器人语音等领域中。通过本次实验,了解TTS的基本实现原理,并能在VC++环境中运用TTS技术完成英文的文-语转换。 Windows支持两种RIFF(resource interchange file format,“资源交互文件格式”)音频文件:MIDI的RMID文件和波形音频文件格式Wav文件,而Wav文件是一种经常需要播放获编辑的音频文件,故本实验就要学习设计VC程序完成Wav文件播放的几种不同方法,以深入理解Wav文件的播放原理及VC多媒体程序设计的基本方法。同时,通过一个简单的程序来分析Wav文件的文件头信息,从而深刻理解波形音频文件的构造。 -Man- that is, TTS Text-to-Speech, referred to as the TTS, this technology has been widely applied to various information booth, robot voice And other areas. Through this experiment, to understand the basic realization of TTS principle and VC environment in the use of TTS technology, complete the text in English- language Conversion. Windows supports two types of RIFF (resource interchange file format, "Resource Interactive File Format") audio file: MIDI The RMID file and wave audio file format, Wav files, and Wav file is a regular need for playing audio files have been edited, so the real VC inspection would have to learn the design process is
    2022-04-24 09:17:11下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载