SCRNSAVE: Does it really protect the screen?

Hello experts,
I am using the following command in several stations

Process.Start("cmd.exe", "/c scrnsave.scr /s")

like a way to protect the screen and also the privacy of the user.

Is this command really protecting the screen? since it turns the screen black but its still sort of iluminated.
Is it the same as the normal screen protector ?

if that is the case. What is the command to call the screen protector manually instead of putting a black screen?
Regards,
RGuillermoProject ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fernando SotoRetiredCommented:
To the question, "Is this command really protecting the screen? since it turns the screen black but its still sort of illuminated. Is it the same as the normal screen protector ? ", if the screen is turning itself black then yes. The purpose of the screen saver is to randomly change the color of pixels on the screen so that when the monitor is left on displaying the same image for a long time the image is not burned into the screen itself. If you wish to use the screensaver of the system then you can following the information on this web page.

Programmatically Turning on the Screen Saver

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David Johnson, CD, MVPOwnerCommented:
screen savers are of particular importance with CRT displays and not important with LCD/LED displays. You could use power options since most modern displays are ACPI/Energy Star compliant to turn off the display instead of using a screen saver.
RGuillermoProject ManagerAuthor Commented:
David Johnson, MVP
Can you give me, please, an example in visual basic .NET on how to use the power options programatically? ... for taht purpose ?
Regards
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

zalazarCommented:
You can use the following code
Imports System.Runtime.InteropServices

Public Class Form1
    Public SC_MONITORPOWER As Integer = &HF170
    Public WM_SYSCOMMAND As Integer = &H112

    <DllImport("user32.dll", SetLastError:=True)> _
    Private Shared Function SendMessage(ByVal hWnd As Integer, ByVal hMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
    End Function


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        SendMessage(Me.Handle.ToInt32(), WM_SYSCOMMAND, SC_MONITORPOWER, 2)
    End Sub
End Class

Open in new window

MacleanSystem EngineerCommented:
I think that David is on the ball mentioning screensaver burn in was from the CRT era,
These days its more for security that users need to enter PW if system times out.
RGuillermoProject ManagerAuthor Commented:
Thanks to all Experts!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.