Function Reference


_WinAPI_ShellGetSettings

Retrieves Shell state settings

#include <WinAPIShellEx.au3>
_WinAPI_ShellGetSettings ( $iFlags )

Parameters

$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

Return Value

Returns the value that contains a combination of flags specified in the $iFlags parameter. If flag is set,
appropriate setting is enabled, otherwise disabled. The function checks only flags that were
specified in the $iFlags parameter.

See Also

Search SHGetSetSettings in MSDN Library.

Example

#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)