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
ff1285ac
Commit
ff1285ac
authored
Apr 03, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
Apr 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: Add some machine name properties to the DxDiag_SystemInfo container.
parent
71c6f482
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
provider.c
dlls/dxdiagn/provider.c
+16
-1
No files found.
dlls/dxdiagn/provider.c
View file @
ff1285ac
...
...
@@ -366,11 +366,14 @@ static HRESULT build_systeminfo_tree(IDxDiagContainerImpl_Container *node)
static
const
WCHAR
dwOSBuildNumber
[]
=
{
'd'
,
'w'
,
'O'
,
'S'
,
'B'
,
'u'
,
'i'
,
'l'
,
'd'
,
'N'
,
'u'
,
'm'
,
'b'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
dwOSPlatformID
[]
=
{
'd'
,
'w'
,
'O'
,
'S'
,
'P'
,
'l'
,
'a'
,
't'
,
'f'
,
'o'
,
'r'
,
'm'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
szCSDVersion
[]
=
{
's'
,
'z'
,
'C'
,
'S'
,
'D'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
szMachineNameLocalized
[]
=
{
's'
,
'z'
,
'M'
,
'a'
,
'c'
,
'h'
,
'i'
,
'n'
,
'e'
,
'N'
,
'a'
,
'm'
,
'e'
,
'L'
,
'o'
,
'c'
,
'a'
,
'l'
,
'i'
,
'z'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
szMachineNameEnglish
[]
=
{
's'
,
'z'
,
'M'
,
'a'
,
'c'
,
'h'
,
'i'
,
'n'
,
'e'
,
'N'
,
'a'
,
'm'
,
'e'
,
'E'
,
'n'
,
'g'
,
'l'
,
'i'
,
's'
,
'h'
,
0
};
HRESULT
hr
;
MEMORYSTATUSEX
msex
;
OSVERSIONINFOW
info
;
WCHAR
buffer
[
MAX_PATH
];
DWORD
count
;
WCHAR
buffer
[
MAX_PATH
],
computer_name
[
MAX_COMPUTERNAME_LENGTH
+
1
];
hr
=
add_ui4_property
(
node
,
dwDirectXVersionMajor
,
9
);
if
(
FAILED
(
hr
))
...
...
@@ -440,6 +443,18 @@ static HRESULT build_systeminfo_tree(IDxDiagContainerImpl_Container *node)
if
(
FAILED
(
hr
))
return
hr
;
count
=
sizeof
(
computer_name
)
/
sizeof
(
WCHAR
);
if
(
!
GetComputerNameW
(
computer_name
,
&
count
))
return
E_FAIL
;
hr
=
add_bstr_property
(
node
,
szMachineNameLocalized
,
computer_name
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
add_bstr_property
(
node
,
szMachineNameEnglish
,
computer_name
);
if
(
FAILED
(
hr
))
return
hr
;
return
S_OK
;
}
...
...
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