Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a57befe7
Commit
a57befe7
authored
Jun 14, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 14, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace more PROFILE_ functions by RegQueryValueExA.
parent
183eae90
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
15 deletions
+53
-15
nonclient.c
windows/nonclient.c
+0
-1
spy.c
windows/spy.c
+24
-4
sysmetrics.c
windows/sysmetrics.c
+29
-8
win.c
windows/win.c
+0
-1
winpos.c
windows/winpos.c
+0
-1
No files found.
windows/nonclient.c
View file @
a57befe7
...
...
@@ -20,7 +20,6 @@
#include "hook.h"
#include "nonclient.h"
#include "debugtools.h"
#include "options.h"
#include "shellapi.h"
#include "bitmap.h"
...
...
windows/spy.c
View file @
a57befe7
...
...
@@ -10,10 +10,10 @@
#include <stdio.h>
#include "windef.h"
#include "wingdi.h"
#include "winreg.h"
#include "wine/winuser16.h"
#include "wine/winbase16.h"
#include "win.h"
#include "options.h"
#include "debugtools.h"
#include "spy.h"
#include "commctrl.h"
...
...
@@ -1756,10 +1756,17 @@ int SPY_Init(void)
int
i
;
char
buffer
[
1024
];
const
SPY_NOTIFY
*
p
;
HKEY
hkey
;
if
(
!
TRACE_ON
(
message
))
return
TRUE
;
PROFILE_GetWineIniString
(
"Spy"
,
"Include"
,
""
,
buffer
,
sizeof
(
buffer
)
);
buffer
[
0
]
=
0
;
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Wine
\\
Config
\\
Spy"
,
&
hkey
))
{
DWORD
type
,
count
=
sizeof
(
buffer
);
RegQueryValueExA
(
hkey
,
"Include"
,
0
,
&
type
,
buffer
,
&
count
);
RegCloseKey
(
hkey
);
}
if
(
buffer
[
0
]
&&
strcmp
(
buffer
,
"INCLUDEALL"
))
{
TRACE
(
"Include=%s
\n
"
,
buffer
);
...
...
@@ -1767,7 +1774,13 @@ int SPY_Init(void)
SPY_Exclude
[
i
]
=
(
MessageTypeNames
[
i
]
&&
!
strstr
(
buffer
,
MessageTypeNames
[
i
]));
}
PROFILE_GetWineIniString
(
"Spy"
,
"Exclude"
,
""
,
buffer
,
sizeof
(
buffer
)
);
buffer
[
0
]
=
0
;
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Wine
\\
Config
\\
Spy"
,
&
hkey
))
{
DWORD
type
,
count
=
sizeof
(
buffer
);
RegQueryValueExA
(
hkey
,
"Exclude"
,
0
,
&
type
,
buffer
,
&
count
);
RegCloseKey
(
hkey
);
}
if
(
buffer
[
0
])
{
TRACE
(
"Exclude=%s
\n
"
,
buffer
);
...
...
@@ -1778,7 +1791,14 @@ int SPY_Init(void)
SPY_Exclude
[
i
]
=
(
MessageTypeNames
[
i
]
&&
strstr
(
buffer
,
MessageTypeNames
[
i
]));
}
SPY_ExcludeDWP
=
PROFILE_GetWineIniInt
(
"Spy"
,
"ExcludeDWP"
,
0
);
SPY_ExcludeDWP
=
0
;
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Wine
\\
Config
\\
Spy"
,
&
hkey
))
{
DWORD
type
,
count
=
sizeof
(
buffer
);
if
(
!
RegQueryValueExA
(
hkey
,
"ExcludeDWP"
,
0
,
&
type
,
buffer
,
&
count
))
SPY_ExcludeDWP
=
atoi
(
buffer
);
RegCloseKey
(
hkey
);
}
/* find last good entry in spy notify array and save addr for b-search */
p
=
&
spnfy_array
[
0
];
...
...
windows/sysmetrics.c
View file @
a57befe7
...
...
@@ -6,19 +6,40 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "windef.h"
#include "wingdi.h"
#include "wine/winuser16.h"
#include "winbase.h"
#include "winreg.h"
#include "winuser.h"
#include "options.h"
#include "user.h"
#include "sysmetrics.h"
static
int
sysMetrics
[
SM_WINE_CMETRICS
+
1
];
static
int
SYSMETRICS_GetProfileInt
(
const
char
*
section
,
const
char
*
key
,
int
default_value
)
{
int
ret
=
default_value
;
char
buffer
[
1024
];
HKEY
hkey
;
strcpy
(
buffer
,
"Software
\\
Wine
\\
Wine
\\
Config
\\
"
);
strncat
(
buffer
,
section
,
sizeof
(
buffer
)
-
strlen
(
buffer
));
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
buffer
,
&
hkey
))
{
DWORD
type
,
count
=
sizeof
(
buffer
);
if
(
!
RegQueryValueExA
(
hkey
,
key
,
0
,
&
type
,
buffer
,
&
count
))
ret
=
atoi
(
buffer
);
RegCloseKey
(
hkey
);
}
return
ret
;
}
/***********************************************************************
* SYSMETRICS_Init
*
...
...
@@ -48,21 +69,21 @@ void SYSMETRICS_Init(void)
sysMetrics
[
SM_WINE_BPP
]
=
GetDeviceCaps
(
hdc
,
BITSPIXEL
);
if
(
TWEAK_WineLook
>
WIN31_LOOK
)
sysMetrics
[
SM_CXVSCROLL
]
=
PROFILE_GetWineIni
Int
(
"Tweak.Layout"
,
"ScrollBarWidth"
,
16
);
SYSMETRICS_GetProfile
Int
(
"Tweak.Layout"
,
"ScrollBarWidth"
,
16
);
else
sysMetrics
[
SM_CXVSCROLL
]
=
PROFILE_GetWineIni
Int
(
"Tweak.Layout"
,
"ScrollBarWidth"
,
17
);
SYSMETRICS_GetProfile
Int
(
"Tweak.Layout"
,
"ScrollBarWidth"
,
17
);
sysMetrics
[
SM_CYHSCROLL
]
=
sysMetrics
[
SM_CXVSCROLL
];
if
(
TWEAK_WineLook
>
WIN31_LOOK
)
sysMetrics
[
SM_CYCAPTION
]
=
PROFILE_GetWineIni
Int
(
"Tweak.Layout"
,
"CaptionHeight"
,
19
);
SYSMETRICS_GetProfile
Int
(
"Tweak.Layout"
,
"CaptionHeight"
,
19
);
else
sysMetrics
[
SM_CYCAPTION
]
=
PROFILE_GetWineIni
Int
(
"Tweak.Layout"
,
"CaptionHeight"
,
20
);
SYSMETRICS_GetProfile
Int
(
"Tweak.Layout"
,
"CaptionHeight"
,
20
);
sysMetrics
[
SM_CXBORDER
]
=
1
;
sysMetrics
[
SM_CYBORDER
]
=
sysMetrics
[
SM_CXBORDER
];
sysMetrics
[
SM_CXDLGFRAME
]
=
PROFILE_GetWineIni
Int
(
"Tweak.Layout"
,
"DialogFrameWidth"
,
SYSMETRICS_GetProfile
Int
(
"Tweak.Layout"
,
"DialogFrameWidth"
,
(
TWEAK_WineLook
>
WIN31_LOOK
)
?
3
:
4
);
sysMetrics
[
SM_CYDLGFRAME
]
=
sysMetrics
[
SM_CXDLGFRAME
];
sysMetrics
[
SM_CYVTHUMB
]
=
sysMetrics
[
SM_CXVSCROLL
]
-
1
;
...
...
@@ -71,10 +92,10 @@ void SYSMETRICS_Init(void)
sysMetrics
[
SM_CYICON
]
=
32
;
if
(
TWEAK_WineLook
>
WIN31_LOOK
)
sysMetrics
[
SM_CYMENU
]
=
PROFILE_GetWineIni
Int
(
"Tweak.Layout"
,
"MenuHeight"
,
19
);
SYSMETRICS_GetProfile
Int
(
"Tweak.Layout"
,
"MenuHeight"
,
19
);
else
sysMetrics
[
SM_CYMENU
]
=
PROFILE_GetWineIni
Int
(
"Tweak.Layout"
,
"MenuHeight"
,
18
);
SYSMETRICS_GetProfile
Int
(
"Tweak.Layout"
,
"MenuHeight"
,
18
);
sysMetrics
[
SM_CXFULLSCREEN
]
=
sysMetrics
[
SM_CXSCREEN
];
sysMetrics
[
SM_CYFULLSCREEN
]
=
sysMetrics
[
SM_CYSCREEN
]
-
sysMetrics
[
SM_CYCAPTION
];
...
...
windows/win.c
View file @
a57befe7
...
...
@@ -10,7 +10,6 @@
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/unicode.h"
#include "options.h"
#include "win.h"
#include "heap.h"
#include "user.h"
...
...
windows/winpos.c
View file @
a57befe7
...
...
@@ -19,7 +19,6 @@
#include "hook.h"
#include "message.h"
#include "queue.h"
#include "options.h"
#include "winpos.h"
#include "dce.h"
#include "nonclient.h"
...
...
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