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
6cc2f0f4
Commit
6cc2f0f4
authored
Jun 29, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jul 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Implement MsiSourceListGetInfoA.
parent
886c970d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
1 deletion
+53
-1
msi.spec
dlls/msi/msi.spec
+1
-1
source.c
dlls/msi/source.c
+52
-0
No files found.
dlls/msi/msi.spec
View file @
6cc2f0f4
...
...
@@ -258,7 +258,7 @@
262 stub MsiSourceListForceResolutionExW
263 stub MsiSourceListEnumSourcesA
264 stub MsiSourceListEnumSourcesW
265 st
ub MsiSourceListGetInfoA
265 st
dcall MsiSourceListGetInfoA(str str long long str ptr ptr)
266 stub MsiSourceListGetInfoW
267 stub MsiSourceListSetInfoA
268 stub MsiSourceListSetInfoW
...
...
dlls/msi/source.c
View file @
6cc2f0f4
...
...
@@ -150,6 +150,58 @@ static UINT find_given_source(HKEY key, LPCWSTR szSource, media_info *ss)
}
/******************************************************************
* MsiSourceListGetInfoA (MSI.@)
*/
UINT
WINAPI
MsiSourceListGetInfoA
(
LPCSTR
szProduct
,
LPCSTR
szUserSid
,
MSIINSTALLCONTEXT
dwContext
,
DWORD
dwOptions
,
LPCSTR
szProperty
,
LPSTR
szValue
,
LPDWORD
pcchValue
)
{
UINT
ret
;
LPWSTR
product
=
NULL
;
LPWSTR
usersid
=
NULL
;
LPWSTR
property
=
NULL
;
LPWSTR
value
=
NULL
;
DWORD
len
=
0
;
if
(
szValue
&&
!
pcchValue
)
return
ERROR_INVALID_PARAMETER
;
if
(
szProduct
)
product
=
strdupAtoW
(
szProduct
);
if
(
szUserSid
)
usersid
=
strdupAtoW
(
szUserSid
);
if
(
szProperty
)
property
=
strdupAtoW
(
szProperty
);
ret
=
MsiSourceListGetInfoW
(
product
,
usersid
,
dwContext
,
dwOptions
,
property
,
NULL
,
&
len
);
if
(
ret
!=
ERROR_SUCCESS
)
goto
done
;
value
=
msi_alloc
(
++
len
*
sizeof
(
WCHAR
));
if
(
!
value
)
return
ERROR_OUTOFMEMORY
;
ret
=
MsiSourceListGetInfoW
(
product
,
usersid
,
dwContext
,
dwOptions
,
property
,
value
,
&
len
);
if
(
ret
!=
ERROR_SUCCESS
)
goto
done
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
value
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
*
pcchValue
>=
len
)
WideCharToMultiByte
(
CP_ACP
,
0
,
value
,
-
1
,
szValue
,
len
,
NULL
,
NULL
);
else
if
(
szValue
)
ret
=
ERROR_MORE_DATA
;
*
pcchValue
=
len
-
1
;
done:
msi_free
(
product
);
msi_free
(
usersid
);
msi_free
(
property
);
msi_free
(
value
);
return
ret
;
}
/******************************************************************
* MsiSourceListGetInfoW (MSI.@)
*/
UINT
WINAPI
MsiSourceListGetInfoW
(
LPCWSTR
szProduct
,
LPCWSTR
szUserSid
,
...
...
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