Advertisement
5_2007-2008 System Services/ Functions #178255

Kill Process

The utility first attempts to end the process by posting WM_CLOSE to the main window(s). If it fails or if the application is window-less (i.e.: a NT Service), it then opens the process handle and terminates it by calling TerminateProcess function. Be ware, that this code can be some what dangerous, because it adjusts its own process token to allow debug privilages, which can force even a NT service ran under LOCALSYSTEM account to close (can be handy though). The project and workspace are for MSVC++ 6.

AI

AIサマリー: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ソースコード
original-source
Upload
オリジナルのコメント (3)
Wayback Machineから復元