I'm curious... I've dealt with this a while ago and came upon it again -- this time I really want to know more about this

invoke NoRestart, TRUE

Now I looked in the windows api and found nothing on it... So what is it? What I can gather on my own is that it prevents alt-tabing and ctrl-alt-del

Is this one of those undocumented functions?

Also is this only allowed in windows 9*?

Posted on 2001-11-19 11:44:56 by Sliver
A quick search finds no references in \masm32\*.asm;*.inc. It's
not in any of the platformsdk libraries either. Searched all my system
dlls, and found it in dx7vb.dll and dx8vb.dll. Pretty queer, it's found
in the VB versions of DX, but not in the regular versions? :P. You'd
better go and have a look at the DX SDK... might explain stuff.
Posted on 2001-11-19 11:53:22 by f0dder
I'm pretty sure, it's just a proc... not an API :)
Posted on 2001-11-19 13:38:18 by bazik
I'm starting to figure it may be:

invoke SystemParametersInfo, SPI_SCREENSAVERRUNNING, TRUE, 1, 0

I'm just guessing because I couldn't find the procedure in question and this has the same effect. Oh well

Posted on 2001-11-19 23:00:12 by Sliver
I think you can search "NoRestart" or anything else you need but forgot in MSDN. Try April 2001 version (on 3 CD).
If you will not find it there read carefully your source code where it was "invoke NoRestart....". May it was in one *.inc or *.lib files (see include section)
At least scan libraries from C:\Windows\System for text "NoRestart". If you'll find it, dump library. This will give you the information what syntax the function is.

P.S. I did those things and it worked
Posted on 2001-11-20 05:39:18 by lieutenant
As I said previously, it seems to be a DirectX function, so look in
the DirectX documents.
Posted on 2001-11-20 09:19:37 by f0dder