PasswordProtectScreenSaver property

The PasswordProtectScreenSaver property is a read/write property that enables or disables password protection when a computer resumes from a screen saver.

This property is read/write.

Syntax

HRESULT put_PasswordProtectScreenSaver(
  [in]   VARIANT_BOOL newVal
);

HRESULT get_PasswordProtectScreenSaver(
  [out]  VARIANT_BOOL *pVal
);

Property value

A new value that indicates whether password protection for the screen saver should be enabled or disabled.

Error codes

PasswordProtectScreenSaver returns a standard HRESULT.

Remarks

A network or domain administrator can override the PasswordProtectScreenSaver property through Group Policy. If this situation occurs, regardless of what value that you set this property to, your screen saver will always be password-protected.

See also

Console

 

 

Send comments about this topic to Microsoft

Build date: 1/12/2012