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
ba3fe55c
Commit
ba3fe55c
authored
Jun 14, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Implement Win32_OperatingSystem.CodeSet.
parent
772236fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
builtin.c
dlls/wbemprox/builtin.c
+12
-0
No files found.
dlls/wbemprox/builtin.c
View file @
ba3fe55c
...
...
@@ -102,6 +102,8 @@ static const WCHAR prop_captionW[] =
{
'C'
,
'a'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
prop_classW
[]
=
{
'C'
,
'l'
,
'a'
,
's'
,
's'
,
0
};
static
const
WCHAR
prop_codesetW
[]
=
{
'C'
,
'o'
,
'd'
,
'e'
,
'S'
,
'e'
,
't'
,
0
};
static
const
WCHAR
prop_commandlineW
[]
=
{
'C'
,
'o'
,
'm'
,
'm'
,
'a'
,
'n'
,
'd'
,
'L'
,
'i'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
prop_cpustatusW
[]
=
...
...
@@ -322,6 +324,7 @@ static const struct column col_networkadapter[] =
static
const
struct
column
col_os
[]
=
{
{
prop_captionW
,
CIM_STRING
},
{
prop_codesetW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
prop_csdversionW
,
CIM_STRING
},
{
prop_lastbootuptimeW
,
CIM_DATETIME
|
COL_FLAG_DYNAMIC
},
{
prop_osarchitectureW
,
CIM_STRING
},
...
...
@@ -565,6 +568,7 @@ struct record_networkadapter
struct
record_operatingsystem
{
const
WCHAR
*
caption
;
const
WCHAR
*
codeset
;
const
WCHAR
*
csdversion
;
const
WCHAR
*
lastbootuptime
;
const
WCHAR
*
osarchitecture
;
...
...
@@ -1752,6 +1756,13 @@ static WCHAR *get_systemdirectory(void)
Wow64RevertWow64FsRedirection
(
redir
);
return
ret
;
}
static
WCHAR
*
get_codeset
(
void
)
{
static
const
WCHAR
fmtW
[]
=
{
'%'
,
'u'
,
0
};
WCHAR
*
ret
=
heap_alloc
(
11
*
sizeof
(
WCHAR
)
);
if
(
ret
)
sprintfW
(
ret
,
fmtW
,
GetACP
()
);
return
ret
;
}
static
enum
fill_status
fill_os
(
struct
table
*
table
,
const
struct
expr
*
cond
)
{
...
...
@@ -1763,6 +1774,7 @@ static enum fill_status fill_os( struct table *table, const struct expr *cond )
rec
=
(
struct
record_operatingsystem
*
)
table
->
data
;
rec
->
caption
=
os_captionW
;
rec
->
codeset
=
get_codeset
();
rec
->
csdversion
=
os_csdversionW
;
rec
->
lastbootuptime
=
get_lastbootuptime
();
rec
->
osarchitecture
=
get_osarchitecture
();
...
...
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