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
9984ac8a
Commit
9984ac8a
authored
Oct 16, 2007
by
EA Durbin
Committed by
Alexandre Julliard
Oct 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Partially implement GetUserGeoID().
parent
41cf6314
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
locale.c
dlls/kernel32/locale.c
+30
-2
No files found.
dlls/kernel32/locale.c
View file @
9984ac8a
...
...
@@ -3500,8 +3500,36 @@ BOOL WINAPI InvalidateNLSCache(void)
*/
GEOID
WINAPI
GetUserGeoID
(
GEOCLASS
GeoClass
)
{
FIXME
(
"%d
\n
"
,
GeoClass
);
return
GEOID_NOT_AVAILABLE
;
GEOID
ret
=
GEOID_NOT_AVAILABLE
;
static
const
WCHAR
geoW
[]
=
{
'G'
,
'e'
,
'o'
,
0
};
static
const
WCHAR
nationW
[]
=
{
'N'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
WCHAR
bufferW
[
40
],
*
end
;
DWORD
count
;
HANDLE
hkey
,
hSubkey
=
0
;
UNICODE_STRING
keyW
;
const
KEY_VALUE_PARTIAL_INFORMATION
*
info
=
(
KEY_VALUE_PARTIAL_INFORMATION
*
)
bufferW
;
RtlInitUnicodeString
(
&
keyW
,
nationW
);
count
=
sizeof
(
bufferW
);
if
(
!
(
hkey
=
create_registry_key
()))
return
ret
;
switch
(
GeoClass
){
case
GEOCLASS_NATION
:
if
((
hSubkey
=
NLS_RegOpenKey
(
hkey
,
geoW
)))
{
if
((
NtQueryValueKey
(
hSubkey
,
&
keyW
,
KeyValuePartialInformation
,
(
LPBYTE
)
bufferW
,
count
,
&
count
)
==
STATUS_SUCCESS
)
&&
info
->
DataLength
)
ret
=
strtolW
((
LPCWSTR
)
info
->
Data
,
&
end
,
10
);
}
break
;
case
GEOCLASS_REGION
:
FIXME
(
"GEOCLASS_REGION not handled yet
\n
"
);
break
;
}
NtClose
(
hkey
);
if
(
hSubkey
)
NtClose
(
hSubkey
);
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