Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Anti End Task, not WM_Close? (https://www.delphipraxis.net/157176-anti-end-task-not-wm_close.html)

fkerber 2. Jan 2011 20:03

AW: Anti End Task, not WM_Close?
 
Hi,

do you mean this one:
http://www.microsoft.com/presspass/n...ToolkitFS.mspx

Bye,
Frederic

rollstuhlfahrer 2. Jan 2011 20:10

AW: Anti End Task, not WM_Close?
 
Yes, meant this one.

Bernhard

user 3. Jan 2011 02:45

AW: Anti End Task, not WM_Close?
 
Zitat:

Zitat von rollstuhlfahrer
So, why do the users need administrative privileges?

Zitat:

Zitat von Assarbad
Well, in this case it's neither secure nor is it the right approach. Sorry to say

Policy from that place. I can't say any reason about this because I just make the program. I am not the boss :p

I guess by writing service, my problem easier to solve. Thanks for the mini-filter.

Zitat:

Zitat von Assarbad
but the OP might appreciate to get his hands on a copy

Ehmmm... no thanks :) , I can't use product from other.

Zitat:

Zitat von Assarbad
Nope.

That's the answers! :-D

I am still trying to block End Task, if I found the way, I'll post to this board :wink:

rollstuhlfahrer 3. Jan 2011 10:36

AW: Anti End Task, not WM_Close?
 
Then search for all ways how to terminate a process and block them. The easiest way to do so is to block OpenProcess for all matters (and to handle OnCloseQuery). To let Windows shutdown, Windows is issuing a broadcast message on WM_ENDSESSION. After this message (and the check, that this message came from Windows and not from anybody else issuing WM_ENDSESSION to your window) your program needs to be terminatable.

Bernhard

ADD: Which implies: If someone hooks GetSystemMetrics, and tells your program after issuing the WM_ENDSESSION-Message to your window, your process becomes terminateable even if Windows does not really shut down.

Assarbad 3. Jan 2011 12:05

AW: Anti End Task, not WM_Close?
 
Zitat:

Zitat von user (Beitrag 1071897)
Policy from that place. I can't say any reason about this because I just make the program. I am not the boss :p

I guess by writing service, my problem easier to solve. Thanks for the mini-filter.

A mini-filter is going to make it even harder than some UM hooks, but if the users have admin privileges, nothing will keep them from circumventing any of those measures, given they have the necessary know-how.


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:45 Uhr.
Seite 3 von 3     123   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz