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
64dda7f3
Commit
64dda7f3
authored
Oct 06, 2007
by
EA Durbin
Committed by
Alexandre Julliard
Oct 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement SetUserGeoID.
parent
0cd5f208
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
locale.c
dlls/kernel32/locale.c
+31
-2
No files found.
dlls/kernel32/locale.c
View file @
64dda7f3
...
...
@@ -3508,8 +3508,37 @@ GEOID WINAPI GetUserGeoID( GEOCLASS GeoClass )
*/
BOOL
WINAPI
SetUserGeoID
(
GEOID
GeoID
)
{
FIXME
(
"%d
\n
"
,
GeoID
);
return
FALSE
;
static
const
WCHAR
geoW
[]
=
{
'G'
,
'e'
,
'o'
,
0
};
static
const
WCHAR
nationW
[]
=
{
'N'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
formatW
[]
=
{
'%'
,
'i'
,
0
};
UNICODE_STRING
nameW
,
keyW
;
WCHAR
bufferW
[
10
];
OBJECT_ATTRIBUTES
attr
;
HANDLE
hkey
;
if
(
!
(
hkey
=
create_registry_key
()))
return
FALSE
;
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
hkey
;
attr
.
ObjectName
=
&
nameW
;
attr
.
Attributes
=
0
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
RtlInitUnicodeString
(
&
nameW
,
geoW
);
RtlInitUnicodeString
(
&
keyW
,
nationW
);
if
(
NtCreateKey
(
&
hkey
,
KEY_ALL_ACCESS
,
&
attr
,
0
,
NULL
,
0
,
NULL
)
!=
STATUS_SUCCESS
)
{
NtClose
(
attr
.
RootDirectory
);
return
FALSE
;
}
sprintfW
(
bufferW
,
formatW
,
GeoID
);
NtSetValueKey
(
hkey
,
&
keyW
,
0
,
REG_SZ
,
bufferW
,
(
strlenW
(
bufferW
)
+
1
)
*
sizeof
(
WCHAR
));
NtClose
(
attr
.
RootDirectory
);
NtClose
(
hkey
);
return
TRUE
;
}
typedef
struct
...
...
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