-
监控进程并重启
基本原理为: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
-
英文单词拼写检查,并推荐正确单词示例源码
英文单词拼写检查,并推荐正确单词示例源码-English word spelling checker, and recommend the correct word sample source
- 2022-01-26 03:07:57下载
- 积分:1
-
用户也可以点击“停止录音”,以停止声卡,结束录音。
StreamBuff中所有的剩余语音都会被送入TBNR,并通知TBNR录音完毕。
TBNR收到足够...
用户也可以点击“停止录音”,以停止声卡,结束录音。
StreamBuff中所有的剩余语音都会被送入TBNR,并通知TBNR录音完毕。
TBNR收到足够的语音后开始识别,并通过EventCallback和ResultCallback两个回调
函数通知TbnrSdiDemo当前识别状态以及识别结果。-users can click on "stop recording" to stop sound card and the end of recording. StreamBuff all the remaining voice will be sent to TBNR and notified TBNR finished recording. TBNR received adequate recognition after the speech, and through EventCallback and two callback function ResultCallback notice T bnrSdiDemo current state of identification and recognition results.
- 2023-07-13 06:25:03下载
- 积分:1
-
HP superdome 主机培训资料,内部资料。
HP superdome 主机培训资料,内部资料。-HP superdome host training materials, internal information.
- 2022-12-01 15:15:03下载
- 积分:1
-
增加串口,主要是wince方面的, 大家可以学习一下,给大家一个学习参考,...
增加串口,主要是wince方面的, 大家可以学习一下,给大家一个学习参考, -increase was mainly wince regard, we can learn from this for everyone to a study reference, Ha ha Ha ha
- 2022-03-16 03:04:46下载
- 积分:1
-
感谢程序员联合开发网 倾情奉献 这个是有关多文档编程方面的技巧集 欢迎大家下载...
感谢程序员联合开发网 倾情奉献 这个是有关多文档编程方面的技巧集 欢迎大家下载-thank programmers working on the Joint DEDECATES dedication of the many documents relating to the programming skills set to welcome you to download
- 2022-08-26 13:34:31下载
- 积分:1
-
PIC进行AD转换示例
学习PIC18系列单片机的AD转换步骤,通过采集电压来进行展示。
- 2022-01-26 03:36:55下载
- 积分:1
-
一 开发环境
OS: Windows 2000 Server + SP2
IDE: Visual Studio 6.0 + SP5
DataBase...
一 开发环境
OS: Windows 2000 Server + SP2
IDE: Visual Studio 6.0 + SP5
DataBase: SQL 2000 Server + SP2
登录的用户和密码均为RSK-A development environment OS: Windows 2000 Server+ SP2 IDE: Visual Studio 6.0+ SP5 DataBase: SQL 2000 Server+ SP2 users login and password are RSK
- 2022-02-13 14:07:02下载
- 积分:1
-
Space time block codes
Space time block codes
- 2022-05-29 03:16:56下载
- 积分:1
-
关于crc16位效验码的源代码计算方法,该效验码可以应用到通讯,等对数据传输要求较高的通讯。...
关于crc16位效验码的源代码计算方法,该效验码可以应用到通讯,等对数据传输要求较高的通讯。-crc16 place on the well-tested code of the source code calculation method, the well-tested code can be applied to the telecommunications, data transmission and other higher communications.
- 2022-04-17 15:17:51下载
- 积分:1