Retrieves Shell state settings
#include <WinAPIShellEx.au3>
_WinAPI_ShellGetSettings ( $iFlags )
$iFlags | The flags that indicate which settings should be retrieved. This parameter can be one or more of the following values (use ONLY this flags). $SSF_DESKTOPHTML $SSF_DONTPRETTYPATH $SSF_DOUBLECLICKINWEBVIEW $SSF_HIDEICONS $SSF_MAPNETDRVBUTTON $SSF_NOCONFIRMRECYCLE $SSF_NONETCRAWLING $SSF_SEPPROCESS $SSF_SHOWALLOBJECTS $SSF_SHOWCOMPCOLOR $SSF_SHOWEXTENSIONS $SSF_SHOWINFOTIP $SSF_SHOWSUPERHIDDEN $SSF_SHOWSYSFILES $SSF_STARTPANELON $SSF_WIN95CLASSIC $SSF_WEBVIEW Windows Vista or later $SSF_AUTOCHECKSELECT $SSF_ICONSONLY $SSF_SHOWTYPEOVERLAY |
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)