mouse_cfg v0.8: upload
git-svn-id: svn://kolibrios.org@5622 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -10,7 +10,18 @@ enum {
|
||||
SINGLE
|
||||
};
|
||||
|
||||
void RestartProcessByName(dword proc_name, byte multiple) {
|
||||
:int CheckProcessExists(dword proc_name) {
|
||||
int i;
|
||||
proc_info Process;
|
||||
for (i=0; i<1000; i++;)
|
||||
{
|
||||
GetProcessInfo(#Process, i);
|
||||
if (strcmpi(#Process.name, proc_name)==0) return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
:void KillProcessByName(dword proc_name, byte multiple) {
|
||||
int i;
|
||||
proc_info Process;
|
||||
for (i=0; i<1000; i++;)
|
||||
@@ -22,7 +33,12 @@ void RestartProcessByName(dword proc_name, byte multiple) {
|
||||
if (multiple==SINGLE) break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:void RestartProcessByName(dword proc_name, byte multiple) {
|
||||
KillProcessByName(proc_name, multiple);
|
||||
RunProgram(proc_name, "");
|
||||
}
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user