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
c58df6c6
Commit
c58df6c6
authored
Jul 10, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement MsiGetLanguage.
parent
c108d80f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
install.c
dlls/msi/install.c
+23
-0
msi.spec
dlls/msi/msi.spec
+1
-1
No files found.
dlls/msi/install.c
View file @
c58df6c6
...
...
@@ -585,3 +585,26 @@ UINT WINAPI MsiGetComponentStateW(MSIHANDLE hInstall, LPWSTR szComponent,
msiobj_release
(
&
package
->
hdr
);
return
ret
;
}
/***********************************************************************
* MsiGetLanguage (MSI.@)
*/
LANGID
WINAPI
MsiGetLanguage
(
MSIHANDLE
hInstall
)
{
MSIPACKAGE
*
package
;
LANGID
langid
;
LPWSTR
buffer
;
static
const
WCHAR
szProductLanguage
[]
=
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'L'
,
'a'
,
'n'
,
'g'
,
'u'
,
'a'
,
'g'
,
'e'
,
0
};
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
return
ERROR_INVALID_HANDLE
;
buffer
=
load_dynamic_property
(
package
,
szProductLanguage
,
NULL
);
langid
=
atoiW
(
buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
msiobj_release
(
&
package
->
hdr
);
return
langid
;
}
dlls/msi/msi.spec
View file @
c58df6c6
...
...
@@ -60,7 +60,7 @@
60 stdcall MsiGetFeatureUsageW(wstr wstr ptr ptr)
61 stub MsiGetFeatureValidStatesA
62 stub MsiGetFeatureValidStatesW
63 st
ub MsiGetLanguage
63 st
dcall MsiGetLanguage(long)
64 stdcall MsiGetMode(long long)
65 stdcall MsiGetProductCodeA(str str)
66 stdcall MsiGetProductCodeW(wstr wstr)
...
...
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