Sets Shell state settings
#include <WinAPIShellEx.au3>
_WinAPI_ShellSetSettings ( $iFlags, $bSet )
$iFlags | The flags that indicate which settings should be set. This parameter can be one or more of the following values (use ONLY this flags). $SSF_SHOWALLOBJECTS $SSF_SHOWEXTENSIONS $SSF_SHOWCOMPCOLOR $SSF_SHOWSYSFILES $SSF_DOUBLECLICKINWEBVIEW $SSF_DESKTOPHTML $SSF_WIN95CLASSIC $SSF_DONTPRETTYPATH $SSF_MAPNETDRVBUTTON $SSF_SHOWINFOTIP $SSF_HIDEICONS $SSF_NOCONFIRMRECYCLE $SSF_WEBVIEW $SSF_SHOWSUPERHIDDEN $SSF_SEPPROCESS $SSF_NONETCRAWLING $SSF_STARTPANELON Windows Vista or later $SSF_AUTOCHECKSELECT $SSF_ICONSONLY $SSF_SHOWTYPEOVERLAY |
$bSet | Specifies whether a settings ($SSF_*) is enable or disable, valid values: True - Enable. False - Disable. |
Search SHGetSetSettings in MSDN Library.
#include <APIShellExConstants.au3>
#include <WinAPIShellEx.au3>
_WinAPI_ShellSetSettings($SSF_SHOWEXTENSIONS, Not _WinAPI_ShellGetSettings($SSF_SHOWEXTENSIONS))
ConsoleWrite('Hide extensions for known file types: ' & (Not _WinAPI_ShellGetSettings($SSF_SHOWEXTENSIONS)) & @CRLF)