![]() |
Suspend a process |
Post Reply
|
Page 12> |
| Author | ||||
ring0
Newbie
Joined: 09 June 2008 Location: India Online Status: Offline Posts: 17 |
Quote Reply
Topic: Suspend a processPosted: 09 January 2009 at 12:21pm |
|||
|
Hi,
Is there a way to suspend a process ? The process explorer does have that option. How does it do it? need help. |
||||
|
Cheers
- Ring0 |
||||
![]() |
||||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17287 |
Quote Reply
Posted: 09 January 2009 at 12:30pm |
|||
|
ntdll!NtSuspendProcess?
|
||||
|
Daily affirmation:
net helpmsg 4006 |
||||
![]() |
||||
deepgeorge
Newbie
Joined: 02 June 2008 Location: India Online Status: Offline Posts: 15 |
Quote Reply
Posted: 09 January 2009 at 4:05pm |
|||
|
Thanks for the info. it works fine. Just for completeness- I used pedump to see what is the corresponding kernel-mode function exported in ntoskrnl.exe. i could not find any. Do you know how the user-mode ntdll!NtSuspendProcess works? which kernel mode API does it invoke? does it involve a kernel mode transition at all? |
||||
|
Cheers
Deep GZ |
||||
![]() |
||||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17287 |
Quote Reply
Posted: 09 January 2009 at 4:19pm |
|||
|
NtSuspendProcess does perform a kernel mode transition; ultimately, nt!NtSuspendProcess is called.
Unassembing ntdll!NtSuspendProcess shows a pretty small function that essentially just transitions into kernel mode to do the work. |
||||
|
Daily affirmation:
net helpmsg 4006 |
||||
![]() |
||||
deepgeorge
Newbie
Joined: 02 June 2008 Location: India Online Status: Offline Posts: 15 |
Quote Reply
Posted: 09 January 2009 at 4:54pm |
|||
|
"NtSuspendProcess does perform a kernel mode transition; ultimately, nt!NtSuspendProcess is called"
which nt!NtSuspendProcess API are you referring to? There is no such function exported from ntoskrnl.exe. Are you saying NtSuspendProcess in ntdll.dll switches to kernel mode, suspends the process and switches back to user-mode? Edited by deepgeorge - 09 January 2009 at 4:55pm |
||||
|
Cheers
Deep GZ |
||||
![]() |
||||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17287 |
Quote Reply
Posted: 09 January 2009 at 4:59pm |
|||
|
Just because it's not exported, does not mean it does not exist. Load the kernel module in the debugger, configure symbols, and unassemble nt!NtSuspendProcess.
|
||||
|
Daily affirmation:
net helpmsg 4006 |
||||
![]() |
||||
deepgeorge
Newbie
Joined: 02 June 2008 Location: India Online Status: Offline Posts: 15 |
Quote Reply
Posted: 10 January 2009 at 6:14am |
|||
|
Hi,
I was looking for the documentation of NtSuspendProcess and could not find it in MSDN. Is it an undocumented API ? Do you know why MS decide to have it undocumented. I am planning to use this function in one of my projects. If this API is undocumented, MS may not support this API in future version of OS rite? Any idea if is it supported on Xp 64bit, Vista 32bit-64bit? I also want to know if this API is synchronous/asynchronous. Any other alternatives available for suspending a process? Edited by deepgeorge - 10 January 2009 at 6:29am |
||||
|
Cheers
Deep GZ |
||||
![]() |
||||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17287 |
Quote Reply
Posted: 10 January 2009 at 3:03pm |
|||
|
||||
|
Daily affirmation:
net helpmsg 4006 |
||||
![]() |
||||
Bruce9
Groupie
Joined: 30 May 2008 Online Status: Offline Posts: 45 |
Quote Reply
Posted: 10 January 2009 at 4:31pm |
|||
|
You can always get the source code for NtSuspendProcess() and any Win32
api on Adv. Win32 api ng (news://comp.os.ms-windows.programmer.win32)...
(MS, Wine, etc) Edited by Bruce9 - 10 January 2009 at 4:32pm |
||||
![]() |
||||
deepgeorge
Newbie
Joined: 02 June 2008 Location: India Online Status: Offline Posts: 15 |
Quote Reply
Posted: 12 January 2009 at 2:05am |
|||
|
Hi bruce, In which news server is this (news://comp.os.ms-windows.programmer.win32) group located? I am trying to subscribe to this group. Its not found in msnews.microsoft.com news server. I am using Binary News Reaper software. Edited by deepgeorge - 12 January 2009 at 2:07am |
||||
|
Cheers
Deep GZ |
||||
![]() |
||||
Post Reply
|
Page 12> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |