-
监控进程并重启
基本原理为:1,在后台启动监控程序。2,监控程序一直对设定的进程窗口名称的进程进行监控。3,如果发现此进程窗口没有了或消失了,将自动在后台延时几十秒或设定时间后,然后启动此进程。
关键代码如下:
hWndMain=NULL;
hWndMain=::FindWindow(NULL,"录音系统平台");
if(hWndMain==NULL)
{
hWndMain=::FindWindow(NULL,"电话录音");
if(hWndMain==NULL)
{
/* memset(Buf,0,200);
sprintf(Buf, "%04d%02d%02d%02d%02d%02d: find no digitexe
",st.wYear,st.wMonth,st.wDay,st.wHour,st.wMinute,st.wSecond);
if( (log1 = fopen( "selfauto.log", "a+" )) != NULL ) //打开文件流
{
fprintf(log1,"%s
",Buf);
fclose(log1);
}*/
- 2022-11-05 05:20:02下载
- 积分:1
-
The right mouse click the color box to pin down and hold Ke any lessons either a...
鼠标点击右边颜色框拖住不放,柯任意吸取屏幕任一个地方颜色,转换成RGB格式,如果需要其它格式,大家可以修改源码实现。-The right mouse click the color box to pin down and hold Ke any lessons either a local color screen, converted to RGB format, other formats if necessary, we can modify the source code to achieve.
- 2022-05-14 04:17:43下载
- 积分:1
-
DOS based menu system
DOS based menu system
- 2022-07-21 07:16:28下载
- 积分:1
-
C#获取硬盘、CPU型号并使用DES加密
C#获取硬盘、CPU型号并使用DES加密,学习C#windows编程和DLL调用研究。初学者非常适用。初步涉猎DES加密编程者可以研究学习一下。不适合高手使用。
- 2022-03-12 03:59:03下载
- 积分:1
-
一个组播发送和接收的demo,很实用的,接收信息写到文件,并存入数据库,牵扯的知识面很多。值得一看。...
一个组播发送和接收的demo,很实用的,接收信息写到文件,并存入数据库,牵扯的知识面很多。值得一看。-A multicast to send and receive demo, very practical, and receiving information to write the file, and stored in the database, involve a lot of knowledge. Worth a visit.
- 2022-05-23 12:27:46下载
- 积分:1
-
关于在windows下面的USB的一些源码。可以用来操作USB端口
关于在windows下面的USB的一些源码。可以用来操作USB端口-Windows on some of the following USB source. USB ports can be used to operate
- 2023-05-11 06:10:03下载
- 积分:1
-
模拟 Windows 开机动态色带条
模拟 Windows 开机动态色带条-boot Windows simulation of the dynamic ribbon
- 2022-04-12 13:12:05下载
- 积分:1
-
“C++程序设计教程”钱可以回答清华练习…
《C++程序设计教程》钱能 清华 习题原版答案全集
《C++程序设计教程》钱能 清华 习题原版答案全集-" C++ Programming Tutorial" Money can be the answer Tsinghua Exercises original Complete Works of " C++ Programming Tutorial" Money can be the answer Tsinghua original Complete Works of Exercise
- 2022-02-10 07:50:10下载
- 积分:1
-
vhdl实现自动贩卖机功能
可以对3种不同种类的货物进行自动售货,价格分别为A=4.00, B=2.50, C=1.00。售货机可以接受10元,5元,1元三种硬币(即有三种输入信号SY,WY,IY),并且在7段数码管(二位代表元,一位代表角)显示已投入的总钱数,选择货物的输入信号Ia,Ib,Ic,输出指示信号为 Sa, Sb ,Sc 分别表示售出相应的货物,同时输出的信号yuan, jiao代表找零,并显示在7段数码管上。
VGA显示3种货物图片及其价格,鼠标点击购买数量(1-9)后显示总价,安规格说明2中的button2-button4输入硬币,VGA显示已投入的总钱数,鼠标点击购买后,显示找零数目,购买物品闪烁,交易完成。(VGA部分不美观,希望下载的朋友根据自己的审美修改)
- 2022-03-02 17:31:32下载
- 积分:1
-
这个源码可以将C语言头文件(.h)转换为VB模块(.bas)!
这个源码可以将C语言头文件(.h)转换为VB模块(.bas)!-this source will be the first C language files (. H) conversion of VB module (. Bas)!
- 2022-05-05 01:21:48下载
- 积分:1