VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Indicates whether screen saver is enabled or not.

by Tito Burrito Novice @ VB (1 Submission)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 26th September 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Indicates whether screen saver is enabled or not.

API Declarations


Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long

Rate Indicates whether screen saver is enabled or not.



Dim blnActive As Boolean

' Determine whether screen saver is enabled.
Call SystemParametersInfo(SPI_GETSCREENSAVEACTIVE, vbNull, blnReturn, 0)
blnActive = blnReturn

Download this snippet    Add to My Saved Code

Indicates whether screen saver is enabled or not. Comments

No comments have been posted about Indicates whether screen saver is enabled or not.. Why not be the first to post a comment about Indicates whether screen saver is enabled or not..

Post your comment

Subject:
Message:
0/1000 characters