flat assembler
Message board for the users of flat assembler.

Index > Windows > Locking program execution

Author
Thread Post new topic Reply to topic
asmrox



Joined: 19 Jan 2008
Posts: 160
asmrox 09 May 2008, 16:37
how can i freeze execution of thread?
i dont want to call NtSuspendThread, some interrupt would be better. Lets say, stdin input or time period (not NtDelayExecution). Can i do that with 'int'?

Can i freeze execution permanently?


would be nice for debugging. And how do i obtain FL/IP?
Post 09 May 2008, 16:37
View user's profile Send private message Reply with quote
Nikolay Petrov



Joined: 22 Apr 2004
Posts: 101
Location: Bulgaria
Nikolay Petrov 09 May 2008, 19:44
Look in for WaitForDebugEvent; ContinueDebugEvent; DebugActiveProcess; WaitForInputIdle(for GUI) and other similar functions in msdn(has and ".cpp" example). its combination is a good way to "command" threads and processes.
if you want to "freeze" execution permanently - create a service or driver to catch or terminate the process. But i think that is not possible if use bios interupt
Post 09 May 2008, 19:44
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.