资 源 简 介
可將執行中的程式,關閉,及重開。亦可以透過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
文 件 列 表
WatchDog-exe
res
Release
car.cpp
car.h
CommonTool.cpp
CommonTool.h
ControlToolTip.cpp
ControlToolTip.h
CParameter.cpp
CParameter.h
DAQHeader.h
Dask.h
DbConnection.cpp
DbConnection.h
DBService.cpp
DBService.h
ExitWindows.cpp
ExitWindows.h
icmp.lib
icmpapi.h
IcmpEcho.cpp
IcmpEcho.h
icmp_dev-0.1.2
ImageTextButton.cpp
ImageTextButton.h
ManageImage.cpp
ManageImage.h
MyPing.cpp
MyPing.h
MySocket.cpp
MySocket.h
NewLabel.cpp
NewLabel.h
PCI-Dask.dll
PCI-Dask.lib
PDask_bc.lib
PictureEx.cpp
PictureEx.h
ReadMe.txt
resource.h
Socket.cpp
Socket.h
StdAfx.cpp
StdAfx.h
SystemTray.cpp
SystemTray.h
WatchDog.aps
WatchDog.clw
WatchDog.cpp
WatchDog.dsp
WatchDog.dsw
WatchDog.h
WatchDog.ini
WatchDog.ini.bak
WatchDog.ncb
WatchDog.opt
WatchDog.plg
WatchDog.rc
WatchDogDlg.cpp
WatchDogDlg.h
WatchDog_Reboot_date.ini
WndTimer.cpp
WndTimer.h
icmp_dev-0.1.2