| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> delphi >> yi chang si wang jin cheng de zi dong fu huo

yi chang si wang jin cheng de zi dong fu huo

2006-12-17 07:36:43 编辑來源:互联网 评论
 
 
 
本文为【异常死亡进程的自动复活】的拼音翻译版
  yi chang si wang jin cheng de zi dong fu huo
  
  yi chang si wang jin cheng de zi dong fu huo
  yi chang si wang jin cheng de zi dong fu huo
  yi 、 wen ti de chan sheng
  wo men huo duo huo shao dou you zhe yang de jing li , zai Windows shang yun xing de ying yong cheng xu chang chang hui yi chang zhong zhi , xu yao tong guo shou gong chong xin jiang qi qi dong qi lai 。 ruo ji suan ji wu ren kan shou , yi chang zhong zhi de jin cheng bu neng shi shi qi dong , ze ke neng gei sheng chan zao cheng sun shi 。
  ben ren zai kai fa GPS quan qiu wei xing ding wei xi tong kong zhi zhong xin cheng xu shi , jiu yu dao guo kong zhi zhong xin cheng xu yi chang zhong zhi si wang de qing kuang , you ci , zhao chu le yi ge zi dong fu huo si wang jin cheng de fang fa , gong shen kao 。
  er 、 xiang guan zhi shi
  tong chang , ba yi ge ying yong cheng xu de yi ci yun xing shi li jiao zuo yi ge jin cheng , zai yi ge jin cheng nei you ke bao han duo tiao ke bing fa zhi xing de lu jing , mei tiao zhi xing lu jing jiao zuo yi ge xian cheng , yi ge jin cheng zhi shao bao han yi ge zhu xian cheng 。 zhu xian cheng fu ze zhi xing yun xing de qi dong dai ma 。 ling wai , yi ge jin cheng ke yi chuang jian ruo gan zi jin cheng 。 dang jin cheng bei chuang jian shi , xi tong zi dong chan sheng zhu xian cheng , zhu xian cheng ran hou ke chuang jian geng duo de xian cheng 。
  wo men ke yi bian xie yi ge cheng xu , rang qi chuang jian 、 qi dong zi jin cheng , bing jian shi jin cheng de yun xing qing kuang , zai qi chu xian yi chang zhong zhi shi , li ji chong xin chuang jian bing qi dong zi jin cheng ji ke 。
  san 、 xiang guan han shu
  1、 chuang jian yi ge zi jin cheng han shu :
  BOOL CreateProcess(
  LPCTSTR lpApplicationName,
  LPTSTR lpCommandLine,
  LPSECURITY_ATTRIBUTES lpProcessAttributes,
  LPSECURITY_ATTRIBUTES lpThreadAttributes,
  BOOL bInheritHandles,
  DWORD dwCreationFlags,
  LPVOID lpEnvironment,
  LPCTSTR lpCurrentDirectory,
  LPSTARTUPINFO lpStartupInfo,
  LPPROCESS_INFORMATION lpProcessInformation
  );
  shen shu shuo ming :
  lpApplicationName: xin jin cheng jiang yao shi yong de ke zhi xing wen jian de ming zi , bi xu bao han kuo zhan ming 。
  LpCommandLine: xin jin cheng de ming ling xing 。 ruo lpApplicationName wei NULL,LpCommandLine de di yi ge shen shu shi xin jin cheng jiang yao shi yong de ke zhi xing wen jian de ming zi , ke yi bu bao han kuo zhan ming , xi tong jia ding shi exe wen jian 。
  LpProcessAttributes he lpThreadAttributes: fen bie shi gei jin cheng dui xiang he xian cheng dui xiang zhi ding de an quan shu xing 。
  BInheritHandles: zhi ding gai jin cheng shi fou ji cheng qi fu jin cheng zhong de ju bing 。
  dwCreationFlags: zhi ding xin jin cheng chan sheng fang shi de biao zhi , ke yong luo ji cao zuo fu or xiang lian jie 。
  LpEnvironment: zhi xiang han you xin jin cheng jiang yao shi yong de huan jing kuai zi fu chuan de yi kuai nei cun , yi ban wei NULL, shi zi jin cheng ji cheng fu jin cheng de yi zu huan jing kuai 。
  LpCurrentDirectory: she zhi zi jin cheng de dang qian qu dong qi he gong zuo mu lu , wei NULL, zi jin cheng ji cheng fu jin cheng de dang qian qu dong qi he gong zuo mu lu 。
  LpStartupInfo: zhi xiang STARTUPINFO de jie gou 。 yi ban rang zi jin cheng shi yong que sheng zhi 。 dan yao ba gai jie gou zhong de suo you cheng yuan chu shi hua wei 0, bing she zhi cb wei jie gou da xiao 。
  STARTUPINFO jie gou ru xia :
  typedef struct _STARTUPINFO {
  DWORD cb;
  LPTSTR lpReserved;
  LPTSTR lpDesktop;
  LPTSTR lpTitle;
  DWORD dwX;
  DWORD dwY;
  DWORD dwXSize;
  DWORD dwYSize;
  DWORD dwXCountChars;
  DWORD dwYCountChars;
  DWORD dwFillAttribute;
  DWORD dwFlags;
  WORD wShowWindow;
  WORD cbReserved2;
  LPBYTE lpReserved2;
  HANDLE hStdInput;
  HANDLE hStdOutput;
  HANDLE hStdError;
  } STARTUPINFO, *LPSTARTUPINFO;
  lpProcessInformation shen shu zhi xiang LPPROCESS_INFORMATION jie gou ,CreateProcess zai fan hui zhi qian , tian ru you guan zi jin cheng de xin xi , fu jin cheng zheng shi li yong gai xin xi jian ce zi jin cheng shi fou zhong zhi 。 gai jie gou ru xia :
  typedef struct _PROCESS_INFORMATION {
  HANDLE hProcess;
  HANDLE hThread;
  DWORD dwProcessId;
  DWORD dwThreadId;
  } PROCESS_INFORMATION;
  hProcess he hThread fen bie shi zi jin cheng de ju bing he zi jin cheng de zhu xian cheng de ju bing ,dwProcessId he dwThreadId fen bie shi zi jin cheng de biao shi hao he zi jin cheng de zhu xian cheng de biao shi hao 。
  2、 zi jin cheng zhong zhi jian ce han shu
  GetEXitCodeProcess(HANDLE hProcess, LPDWORD lpExitCode );
  Hprocess: jin cheng ju bing ,lpExitCode: jin cheng zhong zhi shi de tui chu ma 。
  ru guo yi ge jin cheng mei you zhong zhi ,lpExitCode de fan hui zhi shi STILL_ACTIVE, fou ze fan hui qi ta zhi 。
  si 、 fang fa de Delphi5 yu yan shi xian
  1、 chuang jian yi ge xin de xiang mu Project1
  xuan ze File,New Application。 zai biao dan Form1 shang fang yi Memo zu jian , yi ge OK an niu zu jian , gai bian OK an niu zu jian de Cation shu xing wei CreateProcess。 zai fang yi ge timer zu jian 。 she zhi timer zu jian de Interval zhi wei 1000, mei miao jian cha yi ci jin cheng shi fou zhong zhi 。
  2、 zai Unit1 Use jie de Type hou ding yi yi ge guo cheng
  procedure EstablishProcess;
  zai Unit1 Use jie de Var hou ding yi yi ge bian liang :
  piProcInfoGPS:PROCESS_INFORMATION;
  3、 zai Unit1 implementation jie zhong bian xie EstablishProcess guo cheng de shi xian dai ma ru xia :
  procedure EstablishProcess;
  Var
  siStartupInfo:STARTUPINFO;
  saProcess,saThread:SECURITY_ATTRIBUTES;
  fSuccess:boolean;
  begin
  fSuccess:=false;
  ZeroMemory(@siStartupInfo,sizeof(siStartupInfo));
  siStartupInfo.cb:=sizeof(siStartupInfo);
  saProcess.nLength:=sizeof(saProcess);
  saProcess.lpSecurityDescriptor:=PChar(nil);
  saProcess.bInheritHandle:=true;
  saThread.nLength:=sizeof(saThread);
  saThread.lpSecurityDescriptor:=PChar(nil);
  saThread.bInheritHandle:=true;
  fSuccess:=CreateProcess(PChar(nil),'c:\sr350\Sr350buff',@saProcess,@saThread,false,
  CREATE_DEFAULT_ERROR_MODE,Pchar(nil),Pchar(nil),siStartupInfo,piProcInfoGPS);
  if( not fSuccess)then
  Form1.Memo1.Lines.Add('Create Process Sr350buff fail.')
  else
  Form1.Memo1.Lines.Add('Create Process Sr350buff success.')
  end;
  4、 zai CreateProcess an niu de OnClick shi jian zhong tiao yong guo cheng
  EstablishProcess;
  5、 wei Timer1 de OnTimer shi jian bian xie dai ma :
  Procedure TForm1.Timer1Timer(Sender: TObject);
  Var
  dwExitCode:DWORD;
  fprocessExit:boolean;
  Begin
  
  dwExitCode:=0;
  fprocessExit:=false;
  fprocessExit:=GetExitCodeProcess(piProcInfoGPS.hProcess,dwExitCode);
  if(fprocessExit and (dwExitCode<>STILL_ACTIVE))then
  begin
  Memo1.Lines.Add('SR350buff.exe jin cheng zhong zhi ');
  CloseHandle(piProcInfoGPS.hThread);
  CloseHandle(piProcInfoGPS.hProcess);
  EstablishProcess;
  end;
  End;
  6、 cheng xu zhong she ke zhi xing wen jian ming wei c:\sr350\sr350buff.exe, suo yi c: pan \sr350 mu lu xia xu you sr350buff.exe wen jian 。
  7、 bian yi lian jie , yun xing project1, dan ji CreateProcess ke jian c:\sr350\sr350buff.exe qi dong 。 guan diao sr350buff.exe jin cheng , ke jian sr350buff.exe zi dong zai qi dong 。【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
yi chang si wang jin cheng de zi dong fu huo yi chang si wang jin cheng de zi dong fu huo yi chang si wang jin cheng de zi dong fu huo yi 、 wen ti de chan sheng wo men huo duo huo shao dou you zhe yang de jing li , zai Windows shang yun xing de ying yong cheng xu chang chang hui yi chang zhong zhi , xu yao tong guo shou gong chong xin jiang qi qi dong qi lai 。 ruo ji suan ji wu ren kan shou , yi chang zhong zhi de jin cheng bu neng shi shi qi dong , ze ke neng gei sheng chan zao cheng sun shi 。 ben ren zai kai fa GPS quan qiu wei xing ding wei xi tong kong zhi zhong xin cheng xu shi , jiu yu dao guo kong zhi zhong xin cheng xu yi chang zhong zhi si wang de qing kuang , you ci , zhao chu le yi ge zi dong fu huo si wang jin cheng de fang fa , gong shen kao 。 er 、 xiang guan zhi shi tong chang , ba yi ge ying yong cheng xu de yi ci yun xing shi li jiao zuo yi ge jin cheng , zai yi ge jin cheng nei you ke bao han duo tiao ke bing fa zhi xing de lu jing , mei tiao zhi xing lu jing jiao zuo yi ge xian cheng , yi ge jin cheng zhi shao bao han yi ge zhu xian cheng 。 zhu xian cheng fu ze zhi xing yun xing de qi dong dai ma 。 ling wai , yi ge jin cheng ke yi chuang jian ruo gan zi jin cheng 。 dang jin cheng bei chuang jian shi , xi tong zi dong chan sheng zhu xian cheng , zhu xian cheng ran hou ke chuang jian geng duo de xian cheng 。 wo men ke yi bian xie yi ge cheng xu , rang qi chuang jian 、 qi dong zi jin cheng , bing jian shi jin cheng de yun xing qing kuang , zai qi chu xian yi chang zhong zhi shi , li ji chong xin chuang jian bing qi dong zi jin cheng ji ke 。 san 、 xiang guan han shu 1、 chuang jian yi ge zi jin cheng han shu : BOOL CreateProcess( LPCTSTR lpApplicationName, LPTSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCTSTR lpCurrentDirectory, LPSTARTUPINFO lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation ); shen shu shuo ming : lpApplicationName: xin jin cheng jiang yao shi yong de ke zhi xing wen jian de ming zi , bi xu bao han kuo zhan ming 。 LpCommandLine: xin jin cheng de ming ling xing 。 ruo lpApplicationName wei NULL,LpCommandLine de di yi ge shen shu shi xin jin cheng jiang yao shi yong de ke zhi xing wen jian de ming zi , ke yi bu bao han kuo zhan ming , xi tong jia ding shi exe wen jian 。 LpProcessAttributes he lpThreadAttributes: fen bie shi gei jin cheng dui xiang he xian cheng dui xiang zhi ding de an quan shu xing 。 BInheritHandles: zhi ding gai jin cheng shi fou ji cheng qi fu jin cheng zhong de ju bing 。 dwCreationFlags: zhi ding xin jin cheng chan sheng fang shi de biao zhi , ke yong luo ji cao zuo fu or xiang lian jie 。 LpEnvironment: zhi xiang han you xin jin cheng jiang yao shi yong de huan jing kuai zi fu chuan de yi kuai nei cun , yi ban wei NULL, shi zi jin cheng ji cheng fu jin cheng de yi zu huan jing kuai 。 LpCurrentDirectory: she zhi zi jin cheng de dang qian qu dong qi he gong zuo mu lu , wei NULL, zi jin cheng ji cheng fu jin cheng de dang qian qu dong qi he gong zuo mu lu 。 LpStartupInfo: zhi xiang STARTUPINFO de jie gou 。 yi ban rang zi jin cheng shi yong que sheng zhi 。 dan yao ba gai jie gou zhong de suo you cheng yuan chu shi hua wei 0, bing she zhi cb wei jie gou da xiao 。 STARTUPINFO jie gou ru xia : typedef struct _STARTUPINFO { DWORD cb; LPTSTR lpReserved; LPTSTR lpDesktop; LPTSTR lpTitle; DWORD dwX; DWORD dwY; DWORD dwXSize; DWORD dwYSize; DWORD dwXCountChars; DWORD dwYCountChars; DWORD dwFillAttribute; DWORD dwFlags; WORD wShowWindow; WORD cbReserved2; LPBYTE lpReserved2; HANDLE hStdInput; HANDLE hStdOutput; HANDLE hStdError; } STARTUPINFO, *LPSTARTUPINFO; lpProcessInformation shen shu zhi xiang LPPROCESS_INFORMATION jie gou ,CreateProcess zai fan hui zhi qian , tian ru you guan zi jin cheng de xin xi , fu jin cheng zheng shi li yong gai xin xi jian ce zi jin cheng shi fou zhong zhi 。 gai jie gou ru xia : typedef struct _PROCESS_INFORMATION { HANDLE hProcess; HANDLE hThread; DWORD dwProcessId; DWORD dwThreadId; } PROCESS_INFORMATION; hProcess he hThread fen bie shi zi jin cheng de ju bing he zi jin cheng de zhu xian cheng de ju bing ,dwProcessId he dwThreadId fen bie shi zi jin cheng de biao shi hao he zi jin cheng de zhu xian cheng de biao shi hao 。 2、 zi jin cheng zhong zhi jian ce han shu GetEXitCodeProcess(HANDLE hProcess, LPDWORD lpExitCode ); Hprocess: jin cheng ju bing ,lpExitCode: jin cheng zhong zhi shi de tui chu ma 。 ru guo yi ge jin cheng mei you zhong zhi ,lpExitCode de fan hui zhi shi STILL_ACTIVE, fou ze fan hui qi ta zhi 。 si 、 fang fa de Delphi5 yu yan shi xian 1、 chuang jian yi ge xin de xiang mu Project1 xuan ze File,New Application。 zai biao dan Form1 shang fang yi Memo zu jian , yi ge OK an niu zu jian , gai bian OK an niu zu jian de Cation shu xing wei CreateProcess。 zai fang yi ge timer zu jian 。 she zhi timer zu jian de Interval zhi wei 1000, mei miao jian cha yi ci jin cheng shi fou zhong zhi 。 2、 zai Unit1 Use jie de Type hou ding yi yi ge guo cheng procedure EstablishProcess; zai Unit1 Use jie de Var hou ding yi yi ge bian liang : piProcInfoGPS:PROCESS_INFORMATION; 3、 zai Unit1 implementation jie zhong bian xie EstablishProcess guo cheng de shi xian dai ma ru xia : procedure EstablishProcess; Var siStartupInfo:STARTUPINFO; saProcess,saThread:SECURITY_ATTRIBUTES; fSuccess:boolean; begin fSuccess:=false; ZeroMemory(@siStartupInfo,sizeof(siStartupInfo)); siStartupInfo.cb:=sizeof(siStartupInfo); saProcess.nLength:=sizeof(saProcess); saProcess.lpSecurityDescriptor:=PChar(nil); saProcess.bInheritHandle:=true; saThread.nLength:=sizeof(saThread); saThread.lpSecurityDescriptor:=PChar(nil); saThread.bInheritHandle:=true; fSuccess:=CreateProcess(PChar(nil),'c:\sr350\Sr350buff',@saProcess,@saThread,false, CREATE_DEFAULT_ERROR_MODE,Pchar(nil),Pchar(nil),siStartupInfo,piProcInfoGPS); if( not fSuccess)then Form1.Memo1.Lines.Add('Create Process Sr350buff fail.') else Form1.Memo1.Lines.Add('Create Process Sr350buff success.') end; 4、 zai CreateProcess an niu de OnClick shi jian zhong tiao yong guo cheng EstablishProcess; 5、 wei Timer1 de OnTimer shi jian bian xie dai ma : Procedure TForm1.Timer1Timer(Sender: TObject); Var dwExitCode:DWORD; fprocessExit:boolean; Begin  dwExitCode:=0; fprocessExit:=false; fprocessExit:=GetExitCodeProcess(piProcInfoGPS.hProcess,dwExitCode); if(fprocessExit and (dwExitCode<>STILL_ACTIVE))then begin Memo1.Lines.Add('SR350buff.exe jin cheng zhong zhi '); CloseHandle(piProcInfoGPS.hThread); CloseHandle(piProcInfoGPS.hProcess); EstablishProcess; end; End; 6、 cheng xu zhong she ke zhi xing wen jian ming wei c:\sr350\sr350buff.exe, suo yi c: pan \sr350 mu lu xia xu you sr350buff.exe wen jian 。 7、 bian yi lian jie , yun xing project1, dan ji CreateProcess ke jian c:\sr350\sr350buff.exe qi dong 。 guan diao sr350buff.exe jin cheng , ke jian sr350buff.exe zi dong zai qi dong 。
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
情人节的清纯女生(9)
情人节的清纯女生(8)
情人节的清纯女生(7)
情人节的清纯女生(6)
山东蓬莱海边组照
一探哲蚌 II
一探哲蚌 III
古长城的一角
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有