flat assembler
Message board for the users of flat assembler.

Index > Windows > API call-once

Author
Thread Post new topic Reply to topic
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 26 Mar 2004, 17:35
What API-CALL is called only one time per session when you log-out or shut-down your machine?

regards
harry

_________________
Microsoft: brings power of yesterday to computers of today.
Post 26 Mar 2004, 17:35
View user's profile Send private message Reply with quote
inskipp



Joined: 23 Jun 2003
Posts: 25
Location: Poland
inskipp 26 Mar 2004, 17:40
Maybe ExitWindowsEx . But maybe kernel calls some internal functon to shutdown.
Post 26 Mar 2004, 17:40
View user's profile Send private message ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 26 Mar 2004, 20:38
Do you need to hook/prevent shutdown, or do you just want a shutdown notification in your own application?
Post 26 Mar 2004, 20:38
View user's profile Send private message Visit poster's website Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 30 Mar 2004, 09:27
I want to hook those API to rebuild the regKEY RunOnce in the end of every session.

nothing special but a lot of user got out the WinGuard from the RUN->regKey(not exactly WinGuard but all the sequences) and I try to do the run-moment for this program "so called" invisible. I said, so called because I do not want to hide WinGuard's Icon but only run-action.
RunOnce-regKey is cleared every time afrter sys-starts and if I will be able to add the run sequence before system shuts-down, the users (it is possible but not unqestionable) do not get out WinGuard and others firms software.

this soulution is only for much support and do not keep the required security level.

When somebody will restart his machine manualy (reset-key) the runOnce sequense will be not rebuild and after system starts the required sofware will not run, so I can not drop the RUN-regKey idea for RunOnce.
I need to beprepared (as an admin) for this kind of situation.

_________________
Microsoft: brings power of yesterday to computers of today.
Post 30 Mar 2004, 09:27
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 30 Mar 2004, 15:42
Why not keep just the RUN entry, and protect it from user editing? Either by using ACL permissions (WinNT, regedt32 instead of regedit), or some VXD to protect parts of the registry (Win9x) - it might be a better solution, and will protect against hard-reset removal of the regkey.
Post 30 Mar 2004, 15:42
View user's profile Send private message Visit poster's website Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 01 Apr 2004, 07:38
BINGO!

_________________
Microsoft: brings power of yesterday to computers of today.
Post 01 Apr 2004, 07:38
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.