ReactOS
0.4.16-dev-1056-gbe87e00
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
settings.cpp
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS browseui
3
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4
* PURPOSE: Stores settings for the file explorer UI.
5
* COPYRIGHT: Copyright 2023 Carl Bialorucki <cbialo2@outlook.com>
6
*/
7
8
#include "
precomp.h
"
9
10
CabinetStateSettings
gCabinetState
;
11
12
void
ShellSettings::Save
()
13
{
14
SHRegSetUSValueW
(
L
"Software\\Microsoft\\Internet Explorer\\Main"
,
L
"StatusBarOther"
,
15
REG_DWORD
, &
fStatusBarVisible
,
sizeof
(
fStatusBarVisible
),
SHREGSET_FORCE_HKCU
);
16
17
SHRegSetUSValueW
(
L
"Software\\Microsoft\\Internet Explorer\\Main"
,
L
"ShowGoButton"
,
18
REG_DWORD
, &
fShowGoButton
,
sizeof
(
fShowGoButton
),
SHREGSET_FORCE_HKCU
);
19
20
SHRegSetUSValueW
(
L
"Software\\Microsoft\\Internet Explorer\\Toolbar"
,
L
"Locked"
,
21
REG_DWORD
, &
fLocked
,
sizeof
(
fLocked
),
SHREGSET_FORCE_HKCU
);
22
}
23
24
void
ShellSettings::Load
()
25
{
26
fStatusBarVisible
=
SHRegGetBoolUSValueW
(
L
"Software\\Microsoft\\Internet Explorer\\Main"
,
27
L
"StatusBarOther"
,
FALSE
,
TRUE
);
28
29
fShowGoButton
=
CAddressBand::ShouldShowGoButton
();
30
31
fLocked
=
SHRegGetBoolUSValueW
(
L
"Software\\Microsoft\\Internet Explorer\\Toolbar"
,
32
L
"Locked"
,
FALSE
,
TRUE
);
33
}
34
35
void
CabinetStateSettings::Load
()
36
{
37
this->
cLength
=
sizeof
(
CABINETSTATE
);
38
ReadCabinetState
(
this
, this->
cLength
);
39
40
/* Overrides */
41
fFullPathTitle
=
SHRegGetBoolUSValueW
(
L
"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\CabinetState"
,
42
L
"FullPath"
,
FALSE
,
FALSE
);
43
44
fFullPathAddress
=
SHRegGetBoolUSValueW
(
L
"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\CabinetState"
,
45
L
"FullPathAddress"
,
FALSE
,
TRUE
);
46
}
CAddressBand::ShouldShowGoButton
static BOOL ShouldShowGoButton()
Definition:
addressband.cpp:55
TRUE
#define TRUE
Definition:
types.h:120
FALSE
#define FALSE
Definition:
types.h:117
gCabinetState
CabinetStateSettings gCabinetState
Definition:
settings.cpp:10
SHRegSetUSValueW
LONG WINAPI SHRegSetUSValueW(LPCWSTR pszSubKey, LPCWSTR pszValue, DWORD dwType, LPVOID pvData, DWORD cbData, DWORD dwFlags)
Definition:
reg.c:673
SHRegGetBoolUSValueW
BOOL WINAPI SHRegGetBoolUSValueW(LPCWSTR pszSubKey, LPCWSTR pszValue, BOOL fIgnoreHKCU, BOOL fDefault)
Definition:
reg.c:770
L
#define L(x)
Definition:
ntvdm.h:50
REG_DWORD
#define REG_DWORD
Definition:
sdbapi.c:596
ReadCabinetState
BOOL WINAPI ReadCabinetState(CABINETSTATE *cs, int length)
Definition:
shellord.c:1807
SHREGSET_FORCE_HKCU
#define SHREGSET_FORCE_HKCU
Definition:
shlwapi.h:321
CABINETSTATE
Definition:
shlobj.h:2392
CABINETSTATE::cLength
WORD cLength
Definition:
shlobj.h:2393
CABINETSTATE::fFullPathTitle
BOOL fFullPathTitle
Definition:
shlobj.h:2395
CabinetStateSettings
Definition:
settings.h:25
CabinetStateSettings::Load
void Load()
Definition:
settings.cpp:35
CabinetStateSettings::fFullPathAddress
BOOL fFullPathAddress
Definition:
settings.h:26
ShellSettings::Save
void Save()
Definition:
settings.cpp:12
ShellSettings::Load
void Load()
Definition:
settings.cpp:24
ShellSettings::fStatusBarVisible
BOOL fStatusBarVisible
Definition:
settings.h:17
ShellSettings::fLocked
BOOL fLocked
Definition:
settings.h:15
ShellSettings::fShowGoButton
BOOL fShowGoButton
Definition:
settings.h:16
precomp.h
dll
win32
browseui
settings.cpp
Generated on Tue Apr 29 2025 06:07:45 for ReactOS by
1.9.6