/programs/cmm/lib/gui.h |
---|
171,7 → 171,7 |
w = ESI.edit_box.width+1; |
if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff; |
edit_box_draw stdcall (edit_box_pointer); |
h = ESI.edit_box.ed_height+2; |
h = 22; |
DrawRectangle(x-1, y-1, w+1, h+1, bg); |
DrawRectangle3D(x-2, y-2, w+3, h+3, 0xDDDddd, bg); |
DrawRectangle(x-3, y-3, w+5, h+5, system.color.work_graph); |
/programs/cmm/lib/patterns/restart_process.h |
---|
10,10 → 10,12 |
SINGLE |
}; |
#define MAX_PROCESS_COUNT 256 |
:int CheckProcessExists(dword proc_name) { |
int i; |
proc_info Process; |
for (i=0; i<1000; i++;) |
for (i=0; i<MAX_PROCESS_COUNT; i++;) |
{ |
GetProcessInfo(#Process, i); |
if (strcmpi(#Process.name, proc_name)==0) return 1; |
24,7 → 26,7 |
:void KillProcessByName(dword proc_name, byte multiple) { |
int i; |
proc_info Process; |
for (i=0; i<1000; i++;) |
for (i=0; i<MAX_PROCESS_COUNT; i++;) |
{ |
GetProcessInfo(#Process, i); |
if (strcmpi(#Process.name, proc_name)==0) |