ReactOS 0.4.15-dev-8344-g0574987
globalfoldersettings.cpp File Reference
#include "precomp.h"
Include dependency graph for globalfoldersettings.cpp:

Go to the source code of this file.

Macros

#define DEFBROWSERSTREAM   L"Settings"
 
#define DEFAULT_VID   GUID_NULL
 
#define CURRENT_VERSION   ( DEFFOLDERSETTINGS::VER_XP )
 

Functions

template<class S , class D >
static void CopyTo (const S &Src, D &Dst)
 
static void EnsureValid (FOLDERSETTINGS &fs)
 
static void EnsureValid (DEFFOLDERSETTINGS &dfs)
 
static void InitializeDefaults (DEFFOLDERSETTINGS &dfs)
 

Macro Definition Documentation

◆ CURRENT_VERSION

#define CURRENT_VERSION   ( DEFFOLDERSETTINGS::VER_XP )

Definition at line 25 of file globalfoldersettings.cpp.

◆ DEFAULT_VID

#define DEFAULT_VID   GUID_NULL

Definition at line 24 of file globalfoldersettings.cpp.

◆ DEFBROWSERSTREAM

#define DEFBROWSERSTREAM   L"Settings"

Definition at line 23 of file globalfoldersettings.cpp.

Function Documentation

◆ CopyTo()

template<class S , class D >
static void CopyTo ( const S Src,
D Dst 
)
static

Definition at line 27 of file globalfoldersettings.cpp.

28{
29 Dst.FolderSettings = Src.FolderSettings;
30}
#define Dst
Definition: mesh.h:153

Referenced by DECLARE_INTERFACE_(), SBFOLDERSETTINGS::Load(), and CGlobalFolderSettings::SaveBrowserSettings().

◆ EnsureValid() [1/2]

static void EnsureValid ( DEFFOLDERSETTINGS dfs)
static

Definition at line 41 of file globalfoldersettings.cpp.

42{
44}
static void EnsureValid(FOLDERSETTINGS &fs)
FOLDERSETTINGS FolderSettings
Definition: shlobj_undoc.h:157

◆ EnsureValid() [2/2]

static void EnsureValid ( FOLDERSETTINGS fs)
static

Definition at line 32 of file globalfoldersettings.cpp.

33{
34 if ((int)fs.ViewMode < FVM_AUTO || (int)fs.ViewMode > FVM_LAST)
36
39}
@ FWF_NOSCROLL
Definition: shobjidl.idl:651
@ FWF_OWNERDATA
Definition: shobjidl.idl:644
@ FWF_NOENUMREFRESH
Definition: shobjidl.idl:660
@ FWF_NOCLIENTEDGE
Definition: shobjidl.idl:650
@ FWF_TRANSPARENT
Definition: shobjidl.idl:649
@ FWF_NOVISIBLE
Definition: shobjidl.idl:655
@ FWF_DESKTOP
Definition: shobjidl.idl:646
@ FWF_NOSUBFOLDERS
Definition: shobjidl.idl:648
@ FVM_AUTO
Definition: shobjidl.idl:677
@ FVM_LAST
Definition: shobjidl.idl:687
Definition: ffs.h:70

Referenced by EnsureValid(), and CGlobalFolderSettings::Load().

◆ InitializeDefaults()

static void InitializeDefaults ( DEFFOLDERSETTINGS dfs)
static

Definition at line 46 of file globalfoldersettings.cpp.

47{
48 C_ASSERT(FIELD_OFFSET(DEFFOLDERSETTINGS, FolderSettings) == 4);
51
52 *(UINT*)&dfs = FALSE; // Set all unknown flags to FALSE
53 dfs.Statusbar = TRUE;
56 dfs.vid = DEFAULT_VID;
58 dfs.Counter = 0;
59 dfs.ViewPriority = VIEW_PRIORITY_CACHEMISS;
60}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define DEFAULT_VID
#define CURRENT_VERSION
#define C_ASSERT(e)
Definition: intsafe.h:73
unsigned int UINT
Definition: ndis.h:50
SHELLVIEWID vid
Definition: shlobj_undoc.h:158
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:255

Referenced by CGlobalFolderSettings::Load(), and CGlobalFolderSettings::SaveBrowserSettings().