Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
acdd03ad
Commit
acdd03ad
authored
Feb 22, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Moved systray configuration option to a more appropriate place
and make it compatible with the way other options are stored.
parent
f689e3fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
systray.c
programs/explorer/systray.c
+12
-12
No files found.
programs/explorer/systray.c
View file @
acdd03ad
...
...
@@ -41,6 +41,9 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
systray
);
#define IS_OPTION_FALSE(ch) \
((ch) == 'n' || (ch) == 'N' || (ch) == 'f' || (ch) == 'F' || (ch) == '0')
const
static
WCHAR
adaptor_classname
[]
=
/* Adaptor */
{
'A'
,
'd'
,
'a'
,
'p'
,
't'
,
'o'
,
'r'
,
0
};
/* tray state */
...
...
@@ -338,26 +341,23 @@ static LRESULT WINAPI listener_wndproc(HWND window, UINT msg,
static
BOOL
is_systray_hidden
(
void
)
{
const
WCHAR
hide_systray_keyname
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'S'
,
'y'
,
's'
,
't'
,
'r'
,
'a'
,
'y'
,
0
};
const
WCHAR
hide_systray_valuename
[]
=
{
'H'
,
'i'
,
'd'
,
'd'
,
'e'
,
'n'
,
0
};
DWORD
hidden
;
const
WCHAR
show_systray_keyname
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'X'
,
'1'
,
'1'
,
' '
,
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
0
};
const
WCHAR
show_systray_valuename
[]
=
{
'S'
,
'h'
,
'o'
,
'w'
,
'S'
,
'y'
,
's'
,
't'
,
'r'
,
'a'
,
'y'
,
0
};
HKEY
hkey
;
DWORD
size
;
DWORD
type
;
BOOL
ret
=
FALSE
;
/* @@ Wine registry key: HKCU\Software\Wine\
Systray
*/
if
(
RegOpenKeyW
(
HKEY_CURRENT_USER
,
hide
_systray_keyname
,
&
hkey
)
==
ERROR_SUCCESS
)
/* @@ Wine registry key: HKCU\Software\Wine\
X11 Driver
*/
if
(
RegOpenKeyW
(
HKEY_CURRENT_USER
,
show
_systray_keyname
,
&
hkey
)
==
ERROR_SUCCESS
)
{
size
=
sizeof
(
hidden
);
if
(
RegQueryValueExW
(
hkey
,
hide_systray_valuename
,
0
,
&
type
,
(
LPBYTE
)
&
hidden
,
&
size
)
==
ERROR_SUCCESS
&&
type
==
REG_DWORD
)
WCHAR
value
[
10
];
DWORD
type
,
size
=
sizeof
(
value
);
if
(
RegQueryValueExW
(
hkey
,
show_systray_valuename
,
0
,
&
type
,
(
LPBYTE
)
&
value
,
&
size
)
==
ERROR_SUCCESS
)
{
if
(
hidden
!=
0
)
ret
=
TRUE
;
ret
=
IS_OPTION_FALSE
(
value
[
0
])
;
}
RegCloseKey
(
hkey
);
}
return
ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment