How To Use the SeDebugPrivilege to Acquire Any Process Handle (185215)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q185215 SUMMARY
By setting the SeDebugPrivilege privilege on the running process, you can
obtain the process handle of any running application. When obtaining the
handle to a process, you can then specify the PROCESS_ALL_ACCESS flag,
which will allow the calling of various Win32 APIs upon that process
handle, which you normally could not do. Some of the Win32 APIs that could
be successfully called include the following:
- TerminateProcess
- CreateRemoteThread
This article contains an in-depth example on how you can set the
SeDebugPrivilege upon your application process token, and use that to
terminate another application. This is an advanced topic, and a strong
knowledge of process security is highly recommended.
The discussion of what Process Access, Process Tokens, and Token Privileges
are not covered within the scope of this article. This article assumes
that the reader already understands these advanced topics.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbcode kbhowto KB185215 |
---|
|