What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Help disabling Windows Screensaver

Help disabling Windows Screensaver
Author: Message:
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
RE: Help disabling Windows Screensaver
Put this code above all other code in the form. (very top)

code:
'<<< CONSTANTS >>>
Private Const SPI_SETSCREENSAVEACTIVE As Long = 17

Private Const SPIF_UPDATEINIFILE = &H1
Private Const SPIF_SENDWININICHANGE = &H2


'<<< DECLARES >>>
Private Declare Function SystemParametersInfo _
                Lib "user32" _
                Alias "SystemParametersInfoA" _
                (ByVal uAction As Long, ByVal uParam As Long, _
                ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long


Now you can put this code in the form_load:

code:
Dim lRet As Long
   
   lRet = SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 0, ByVal 0, SPIF_UPDATEINIFILE)

This post was edited on 12-30-2004 at 11:08 PM by DJeX.
[Image: top.gif]
12-30-2004 11:07 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help disabling Windows Screensaver - by Salem on 12-30-2004 at 07:03 PM
RE: Help disabling Windows Screensaver - by Mike on 12-30-2004 at 10:37 PM
RE: RE: Help disabling Windows Screensaver - by Salem on 12-30-2004 at 10:56 PM
RE: Help disabling Windows Screensaver - by Mike on 12-30-2004 at 10:57 PM
RE: RE: Help disabling Windows Screensaver - by Salem on 12-30-2004 at 11:01 PM
RE: Help disabling Windows Screensaver - by DJeX on 12-30-2004 at 11:07 PM
RE: RE: Help disabling Windows Screensaver - by Salem on 12-30-2004 at 11:17 PM
RE: Help disabling Windows Screensaver - by DJeX on 12-30-2004 at 11:24 PM
RE: RE: Help disabling Windows Screensaver - by Salem on 12-30-2004 at 11:53 PM
RE: RE: Help disabling Windows Screensaver - by Salem on 12-31-2004 at 10:16 AM
RE: Help disabling Windows Screensaver - by Mike on 12-31-2004 at 10:34 AM
RE: RE: Help disabling Windows Screensaver - by Salem on 12-31-2004 at 10:37 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On