0000 Posted December 31, 2007 Share Posted December 31, 2007 Hi. Is in autoit some function to: Freeze or Stop or Suspend some process and then it Resume ? If yes. Some exapmle.. Link to comment Share on other sites More sharing options...
rasim Posted December 31, 2007 Share Posted December 31, 2007 Hi. Is in autoit some function to: Freeze or Stop or Suspend some process and then it Resume ? If yes. Some exapmle.. Hello. Process pause: _ProcessPauseSwitch("ProcName.exe", True) Sleep(1500) _ProcessPauseSwitch("ProcName.exe", False) Func _ProcessPauseSwitch($iPIDOrName, $iSuspend = True) If IsString($iPIDOrName) Then $iPIDOrName = ProcessExists($iPIDOrName) If Not $iPIDOrName Then Return SetError(1, 0, 0) Local $ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $iPIDOrName) If $iSuspend Then Local $i_sucess = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $ai_Handle[0]) Else Local $i_sucess = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $ai_Handle[0]) EndIf DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $ai_Handle) If IsArray($i_sucess) Then Return 1 Return SetError(2, 0, 0) EndFunc Link to comment Share on other sites More sharing options...
AscaroN Posted January 2, 2008 Share Posted January 2, 2008 Hello. Process pause: expandcollapse popup_ProcessPauseSwitch("ProcName.exe", True) Sleep(1500) _ProcessPauseSwitch("ProcName.exe", False) Func _ProcessPauseSwitch($iPIDOrName, $iSuspend = True) If IsString($iPIDOrName) Then $iPIDOrName = ProcessExists($iPIDOrName) If Not $iPIDOrName Then Return SetError(1, 0, 0) Local $ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $iPIDOrName) If $iSuspend Then Local $i_sucess = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $ai_Handle[0]) Else Local $i_sucess = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $ai_Handle[0]) EndIf DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $ai_Handle) If IsArray($i_sucess) Then Return 1 Return SetError(2, 0, 0) EndFuncoÝ÷ Ûú®¢×©äÊ+!zZ^vg¯z¼¦¹ÈwÝ©ÝfzØb±«¢+Ø¥¹±Õ±ÐíÕ¥ ½¹ÍѹÑ̹ÔÌÐì(9½QÉå%½¸((ìU$)Õ¥ ÉÑ ÅÕ½ÐíAɽÍÌÉéÈØĸÀÅÕ½Ðì°ÄÜÔ°ÄÌÔ¤(ÀÌØí9Q¥8ôÅÕ½ÐìÅÕ½Ðì(ÀÌØíAÉÄôÅÕ½ÐìÅÕ½Ðì(ÀÌØíAÉÈôÅÕ½ÐìÅÕ½Ðì(ÀÌØíAÉÌôÅÕ½ÐìÅÕ½Ðì(ÀÌØíAÉÐôÅÕ½ÐìÅÕ½Ðì(ÀÌØíAÉÔôÅÕ½ÐìÅÕ½Ðì(ÀÌØí9AÉÄôÅÕ½ÐìÅÕ½Ðì(ÀÌØí9AÉÈôÅÕ½ÐìÅÕ½Ðì(ÀÌØí9AÉÌôÅÕ½ÐìÅÕ½Ðì(ÀÌØí9AÉÐôÅÕ½ÐìÅÕ½Ðì(ÀÌØí9AÉÔôÅÕ½ÐìÅÕ½Ðì((ÀÌØí ѸôÕ¥ Ñɱ ÉÑ ÕÑѽ¸ ÅÕ½ÐíÅÕ½Ðì°ÄÌÔ°ÈÔ°ÌÔ°ÈÀ¤(ÀÌØíAɽÍÌôÕ¥ Ñɱ ÉÑ%¹ÁÕÐ ÅÕ½ÐìÅÕ½Ðì°Ô°ÈÔ°ÄÀÀ°ÈÀ¤(ÀÌØí1±|ÄôÕ¥ Ñɱ ÉÑ1° ÅÕ½Ðí1½ÅÕ½Ðì°Ô°ÔÀ°ÄØÔ°ÈÄ°ÁàÄÀÀÀ¤(ÀÌØí ½µ½|ÈôÕ¥ Ñɱ ÉÑ ½µ¼ ÅÕ½ÐìÅÕ½Ðì°Ô°ÜÔ°ÄÀÀ°ÈĤ(ÀÌØíÉé ѸôÕ¥ Ñɱ ÉÑ ÕÑѽ¸ ÅÕ½ÐíÉéÅÕ½Ðì°Ô°ÄÄÀ°ÐÀ°ÈÀ¤(ÀÌØíU¹Éé ѸôÕ¥ Ñɱ ÉÑ ÕÑѽ¸ ÅÕ½ÐíU¹ÉéÅÕ½Ðì°ÔÀ°ÄÄÀ°ÔÔ°ÈÀ¤(ÀÌØíIµ½Ù ѸôÕ¥ Ñɱ ÉÑ ÕÑѽ¸ ÅÕ½ÐíIµ½ÙÅÕ½Ðì°ÄÄÀ°ÄÄÀ°ÔÔ°ÈÀ¤)Õ¥ Ñɱ ÉÑ1° ÅÕ½Ðí¹ÑÈAɽÍÌ9µèÅÕ½Ðì°Ô°Ô¤)Õ¥ Ñɱ ÉÑ1° ÅÕ½Ðì¹áÅÕ½Ðì°ÄÀÜ°ÈÔ¤)Õ¥ Ñɱ ÉÑ1° ÅÕ½Ðí äQHÅÕ½Ðì°ÄÄÔ°àÀ¤)Õ¥ ÑɱMÑÑ ÀÌØí½µ½|È°ÀÌØíAÉĵÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØíAÉȵÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØíAÉ̵ÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØíAÉеÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØíAÉÔ¤()Õ¥MÑMÑÑ ¤)]¡¥±Ä(%%ÀÌØíAÉıÐìÐìÀÌØí9ÁÉÄ=ÈÀÌØíAÉȱÐìÐìÀÌØí9AÉȽÈÀÌØíAÉ̱ÐìÐìÀÌØí9AÉÌ=ÈÀÌØíAÉбÐìÐìÀÌØí9AÉÐ=ÈÀÌØíAÉÔ±ÐìÐìÀÌØí9AÉÔQ¡¸)} ½µ½IÉÍ ¤($%¹%($ÀÌØíµÍôÕ¥Ñ5Í ¤(M±Ð( ÍÀÌØíµÍôÀÌØíU%}Y9Q} 1=M(á¥Ñ1½½À(% ÍÀÌØíµÍôÀÌØíÉé Ѹ($$ÀÌØíÑôU% ÑɱI ÀÌØí ½µ½|Ȥ($%%AɽÍÍá¥ÍÑÌ ÀÌØíѵÀìÅÕ½Ðì¹áÅÕ½Ðì¤Q¡¸($%}AɽÍÍAÕÍMÝ¥Ñ ÀÌØíѵÀìÅÕ½Ðì¹áÅÕ½Ðì°QÉÕ¤($%U% ÑɱMÑÑ ÀÌØí1±|Ä°ÀÌØíѵÀìÅÕ½Ðìɽé¸ÅÕ½Ðì¤(%±Í($%U% ÑɱMÑÑ ÀÌØí1±|Ä°ÀÌØíѵÀìÅÕ½Ðì9½ÐIÕ¹¹¥¹ÅÕ½Ðì¤(%¹%(% ÍÀÌØíµÍôÀÌØíU¹Éé Ѹ($$ÀÌØíÑôU% ÑɱI ÀÌØí ½µ½|Ȥ($%%AɽÍÍá¥ÍÑÌ ÀÌØíѵÀìÅÕ½Ðì¹áÅÕ½Ðì¤Q¡¸($%}AɽÍÍAÕÍMÝ¥Ñ ÀÌØíѵÀìÅÕ½Ðì¹áÅÕ½Ð찱ͤ($%U% ÑɱMÑÑ ÀÌØí1±|Ä°ÀÌØíѵÀìÅÕ½ÐìU¹É½é¸ÅÕ½Ðì¤(%±Í($%U% ÑɱMÑÑ ÀÌØí1±|Ä°ÀÌØíѵÀìÅÕ½Ðì9½ÐIÕ¹¹¥¹ÅÕ½Ðì¤(%¹%( ÍÀÌØíµÍôÀÌØí Ѹ(ÀÌØíÑôU% ÑɱI ÀÌØíAɽÍ̤)%ÀÌØí9AÉÄôÀÌØí9Q¥8Q¡¸í¥Ä¥ÌµÁÑäÝÉ¥ÑѼ¥Ð(ÀÌØí9AÉÄôÀÌØíÑ(±Í($%ÀÌØí9AÉÈôÀÌØí9Q¥8%Q¡¸$í¥È¥ÌµÁÑäÑ¡¸ÝÉ¥ÑѼ¥Ð($$ÀÌØí9AÉÈôÀÌØíÑ($±Í($%%ÀÌØí9AÉÌôÀÌØí9Q¥8Q¡¸$í¥Ì¥ÌµÁÑäÑ¡¸ÝÉ¥ÑѼ¥Ð(ÀÌØí9AÉÌôÀÌØíÑ(±Í($%ÀÌØí9AÉÐôÀÌØí9Q¥8Q¡¸$í¥Ð¥ÌµÁÑäÑ¡¸ÝÉ¥ÑѼ¥Ð($$ÀÌØí9AÉÐôÀÌØíÑ($±Í($$%ÀÌØí9AÉÔôÀÌØí9Q¥8Q¡¸$í¥Ô¥ÌµÁÑäÑ¡¸ÝÉ¥ÑѼ¥Ð(ÀÌØí9AÉÔôÀÌØíÑ(±Í($5Í ½à À°ÅÕ½Ðí9=Q¥ ÅÕ½Ðì°ÅÕ½Ðí±°M±½ÑÌÉQ¸ÅÕ½Ðì¤(¹%(¹%(¹%(¹%(¹%(% ÍÀÌØíµÍôÀÌØíIµ½Ù Ѹ(ÀÌØíÑôU% ÑɱI ÀÌØí ½µ½|Ȥ)%ÀÌØí9AÉÄôÀÌØíÑQ¡¸í¥Ä¥ÌͱѱѥÐ(%U% ÑɱMÑÑ ÀÌØí1±|Ä°ÀÌØí9AÉĵÀìÅÕ½ÐìIµ½ÙÅÕ½Ðì¤(ÀÌØí9AÉÄôÀÌØí9Q¥8($} ½µ½IÉÍ ¤(±Í($%ÀÌØí9AÉÈôÀÌØíÑ%Q¡¸$í¥È¥ÌͱÑÑ¡¸±Ñ¥Ð($$U% ÑɱMÑÑ ÀÌØí1±|Ä°ÀÌØí9AÉȵÀìÅÕ½ÐìIµ½ÙÅÕ½Ðì¤($$ÀÌØí9AÉÈôÀÌØí9Q¥8($$} ½µ½IÉÍ ¤($±Í($%%ÀÌØí9AÉÌôÀÌØíÑQ¡¸$í¥Ì¥ÌͱÑÑ¡¸±Ñ¥Ð($$%U% ÑɱMÑÑ ÀÌØí1±|Ä°ÀÌØí9AÉ̵ÀìÅÕ½ÐìIµ½ÙÅÕ½Ðì¤(ÀÌØí9AÉÌôÀÌØí9Q¥8($} ½µ½IÉÍ ¤(±Í($%ÀÌØí9AÉÐôÀÌØíÑQ¡¸$í¥Ð¥ÌͱÑÑ¡¸±Ñ¥Ð($$U% ÑɱMÑÑ ÀÌØí1±|Ä°ÀÌØí9AÉеÀìÅÕ½ÐìIµ½ÙÅÕ½Ðì¤($$ÀÌØí9AÉÐôÀÌØí9Q¥8($$} ½µ½IÉÍ ¤($±Í($$%ÀÌØí9AÉÔôÀÌØíÑQ¡¸$í¥Ô¥ÌͱÑÑ¡¸±Ñ¥Ð($$$U% ÑɱMÑÑ ÀÌØí1±|Ä°ÀÌØí9AÉÔµÀìÅÕ½ÐìIµ½ÙÅÕ½Ðì¤(ÀÌØí9AÉÔôÀÌØí9Q¥8($} ½µ½IÉÍ ¤)¹%)¹%)¹%)¹%)¹%(¹M±Ð)]¹()Õ¹} ½µ½IÉÍ ¤)U% Ñɱ±Ñ ÀÌØí½µ½|Ȥ(ÀÌØí ½µ½|ÈôÕ¥ Ñɱ ÉÑ ½µ¼ ÅÕ½ÐìÅÕ½Ðì°Ô°ÜÔ°ÄÀÀ°ÈĤ)Õ¥ ÑɱMÑÑ ÀÌØí½µ½|È°ÀÌØí9AÉĵÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØí9AÉȵÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØí9AÉ̵ÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØí9AÉеÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØí9AÉÔ¤(ÀÌØíAÉÄôÀÌØí9AÉÄ(ÀÌØíAÉÈôÀÌØí9AÉÈ(ÀÌØíAÉÌôÀÌØí9AÉÌ(ÀÌØíAÉÐôÀÌØí9AÉÐ(ÀÌØíAÉÔôÀÌØí9AÉÔ)¹Õ¹()Õ¹}AɽÍÍAÕÍMÝ¥Ñ ÀÌØí¥A%=É9µ°ÀÌØí¥MÕÍÁ¹ôQÉÕ¤(%%ÍMÑÉ¥¹ ÀÌØí¥A%=É9µ¤Q¡¸ÀÌØí¥A%=É9µôAɽÍÍá¥ÍÑÌ ÀÌØí¥A%=É9µ¤(%9½ÐÀÌØí¥A%=É9µQ¡¸IÑÕɸMÑÉÉ½È Ä°À°À¤(1½°ÀÌØí¥}!¹±ô±± ±° ÅÕ½Ðíɹ°Ìȹ±°ÅÕ½Ðì°Ìäí¥¹ÐÌäì°Ìäí=Á¹AɽÍÌÌäì°Ìäí¥¹ÐÌäì°ÁàÅÁ°Ìäí¥¹ÐÌä찱ͰÌäí¥¹ÐÌäì°ÀÌØí¥A%=É9µ¤(%ÀÌØí¥MÕÍÁ¹Q¡¸(1½°ÀÌØí¥}ÍÕÍÌô±± ±° ÅÕ½Ðí¹Ñ±°¹±°ÅÕ½Ðì°ÅÕ½Ðí¥¹ÐÅÕ½Ðì°ÅÕ½Ðí9ÑMÕÍÁ¹AɽÍÌÅÕ½Ðì°ÅÕ½Ðí¥¹ÐÅÕ½Ðì°ÀÌØí¥}!¹±lÁt¤(±Í(1½°ÀÌØí¥}ÍÕÍÌô±± ±° ÅÕ½Ðí¹Ñ±°¹±°ÅÕ½Ðì°ÅÕ½Ðí¥¹ÐÅÕ½Ðì°ÅÕ½Ðí9ÑIÍÕµAɽÍÌÅÕ½Ðì°ÅÕ½Ðí¥¹ÐÅÕ½Ðì°ÀÌØí¥}!¹±lÁt¤(¹%(±± ±° Ìäíɹ°Ìȹ±°Ìäì°ÌäíÁÑÈÌäì°Ìäí ±½Í!¹±Ìäì°ÌäíÁÑÈÌäì°ÀÌØí¥}!¹±¤(%%ÍÉÉä ÀÌØí¥}ÍÕÍ̤Q¡¸IÑÕɸÄ(IÑÕɸMÑÉÉ½È È°À°À¤)¹Õ¹ i hope it help's someone ^^ Link to comment Share on other sites More sharing options...
Bert Posted January 2, 2008 Share Posted January 2, 2008 Why do I think this could be used to stop antivirus or antispyware from running? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bert Posted January 2, 2008 Share Posted January 2, 2008 But then again, it would a good tool when one is attempting to fix a PC.... The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
MrCreatoR Posted January 2, 2008 Share Posted January 2, 2008 Why do I think this could be used to stop antivirus or antispyware from running?I think that really good antiviruses have protection against those kind of freezing atempts Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
AscaroN Posted January 3, 2008 Share Posted January 3, 2008 I think that really good antiviruses have protection against those kind of freezing atempts i've just tested with nod 32 freezing egui.exe and it still works, there must be another process or something,oh btw it works, but doesn't show any warnings, just when you download file with virus it pauses it, and if not frozen it stops it so there is a diference , but it still works ;D Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now