Appearance and Pixie fixes, upload TTF Viewer v0.1
git-svn-id: svn://kolibrios.org@5548 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
19
programs/cmm/lib/patterns/restart_process.h
Normal file
19
programs/cmm/lib/patterns/restart_process.h
Normal file
@@ -0,0 +1,19 @@
|
||||
enum {
|
||||
MULTIPLE,
|
||||
SINGLE
|
||||
};
|
||||
|
||||
void RestartProcessByName(dword proc_name, byte multiple) {
|
||||
int i;
|
||||
proc_info Process;
|
||||
for (i=0; i<1000; i++;)
|
||||
{
|
||||
GetProcessInfo(#Process, i);
|
||||
if (strcmpi(#Process.name, proc_name)==0)
|
||||
{
|
||||
KillProcess(Process.ID);
|
||||
if (multiple==SINGLE) break;
|
||||
}
|
||||
}
|
||||
RunProgram(proc_name, "");
|
||||
}
|
Reference in New Issue
Block a user