double proces in c - /*/ /DoubleStopProcess.c /Compiler...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 /**********************************/ //DoubleStopProcess.c //Compiler Dev-C++ /**********************************/ #include <windows.h> #include <windowsx.h> #include <tlhelp32.h> #include <process.h> #define Progy "taskmgr.exe" #define Master "calc.exe" int func_termi(void) int ID,XY,T3 int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPSTR lpCmdLine, int CmdShow) { char message[] = "This little progy is written !!!",MB_OK | MB_ICONEXCLAMATION) return EXIT_SUCCESS } { if(strcmp(proc32.szExeFile,Progy)==0){ ID=proc32.th32ProcessID Process=OpenProcess(PROCESS_QUERY_INFORMATION,FALSE,ID) Process=OpenProcess(PROCESS_TERMINATE,FALSE,ID) T3=TerminateProcess(Process,code) Taskmgr.exe is stopped!!!","Info",MB_OK) } else if(strcmp(proc32.szExeFile,Master)==0){ ID=proc32.th32ProcessID Process=OpenProcess(PROCESS_QUERY_INFORMATION,FALSE,ID) Process=OpenProcess(PROCESS_TERMINATE,FALSE,ID)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

double proces in c - /*/ /DoubleStopProcess.c /Compiler...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online