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
da783c38
Commit
da783c38
authored
Dec 09, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Dec 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Implement MsiGetProductPropertyW.
parent
06a43815
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
4 deletions
+74
-4
msi.c
dlls/msi/msi.c
+74
-4
No files found.
dlls/msi/msi.c
View file @
da783c38
...
...
@@ -1762,11 +1762,81 @@ done:
return
r
;
}
UINT
WINAPI
MsiGetProductPropertyW
(
MSIHANDLE
hProduct
,
LPCWSTR
szProperty
,
LPWSTR
szValue
,
LPDWORD
pccbValue
)
/******************************************************************
* MsiGetProductPropertyW [MSI.@]
*/
UINT
WINAPI
MsiGetProductPropertyW
(
MSIHANDLE
hProduct
,
LPCWSTR
szProperty
,
LPWSTR
szValue
,
LPDWORD
pccbValue
)
{
FIXME
(
"%ld %s %p %p
\n
"
,
hProduct
,
debugstr_w
(
szProperty
),
szValue
,
pccbValue
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
MSIPACKAGE
*
package
;
MSIQUERY
*
view
=
NULL
;
MSIRECORD
*
rec
=
NULL
;
LPCWSTR
val
;
UINT
r
;
static
const
WCHAR
query
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
'`'
,
'='
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
TRACE
(
"(%ld, %s, %p, %p)
\n
"
,
hProduct
,
debugstr_w
(
szProperty
),
szValue
,
pccbValue
);
if
(
!
szProperty
)
return
ERROR_INVALID_PARAMETER
;
if
(
szValue
&&
!
pccbValue
)
return
ERROR_INVALID_PARAMETER
;
package
=
msihandle2msiinfo
(
hProduct
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
return
ERROR_INVALID_HANDLE
;
r
=
MSI_OpenQuery
(
package
->
db
,
&
view
,
query
,
szProperty
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
r
=
MSI_ViewExecute
(
view
,
0
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
r
=
MSI_ViewFetch
(
view
,
&
rec
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
val
=
MSI_RecordGetString
(
rec
,
2
);
if
(
!
val
)
goto
done
;
if
(
lstrlenW
(
val
)
>=
*
pccbValue
)
{
lstrcpynW
(
szValue
,
val
,
*
pccbValue
);
*
pccbValue
=
lstrlenW
(
val
);
r
=
ERROR_MORE_DATA
;
}
else
{
lstrcpyW
(
szValue
,
val
);
*
pccbValue
=
lstrlenW
(
val
);
r
=
ERROR_SUCCESS
;
}
done:
if
(
view
)
{
MSI_ViewClose
(
view
);
msiobj_release
(
&
view
->
hdr
);
if
(
rec
)
msiobj_release
(
&
rec
->
hdr
);
}
if
(
!
rec
)
{
if
(
szValue
)
*
szValue
=
'\0'
;
if
(
pccbValue
)
*
pccbValue
=
0
;
r
=
ERROR_SUCCESS
;
}
return
r
;
}
UINT
WINAPI
MsiVerifyPackageA
(
LPCSTR
szPackage
)
...
...
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