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
9d389ec0
Commit
9d389ec0
authored
Feb 21, 2006
by
Ulrich Czekalla
Committed by
Alexandre Julliard
Feb 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Implement MsiSourceListAddSource.
parent
7aa3be47
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
2 deletions
+58
-2
msi.spec
dlls/msi/msi.spec
+2
-2
source.c
dlls/msi/source.c
+56
-0
No files found.
dlls/msi/msi.spec
View file @
9d389ec0
...
@@ -203,8 +203,8 @@
...
@@ -203,8 +203,8 @@
207 stub MsiSetFeatureAttributesW
207 stub MsiSetFeatureAttributesW
208 stub MsiSourceListClearAllA
208 stub MsiSourceListClearAllA
209 stub MsiSourceListClearAllW
209 stub MsiSourceListClearAllW
210 st
ub MsiSourceListAddSourceA
210 st
dcall MsiSourceListAddSourceA(str str long str)
211 st
ub MsiSourceListAddSourceW
211 st
dcall MsiSourceListAddSourceW(wstr wstr long wstr)
212 stub MsiSourceListForceResolutionA
212 stub MsiSourceListForceResolutionA
213 stub MsiSourceListForceResolutionW
213 stub MsiSourceListForceResolutionW
214 stub MsiIsProductElevatedA
214 stub MsiIsProductElevatedA
...
...
dlls/msi/source.c
View file @
9d389ec0
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include "winuser.h"
#include "winuser.h"
#include "wine/unicode.h"
#include "wine/unicode.h"
#include "action.h"
#include "action.h"
#include "sddl.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
...
@@ -397,6 +398,61 @@ UINT WINAPI MsiSourceListSetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
...
@@ -397,6 +398,61 @@ UINT WINAPI MsiSourceListSetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
}
}
/******************************************************************
/******************************************************************
* MsiSourceListAddSourceW (MSI.@)
*/
UINT
WINAPI
MsiSourceListAddSourceW
(
LPCWSTR
szProduct
,
LPCWSTR
szUserName
,
DWORD
dwReserved
,
LPCWSTR
szSource
)
{
INT
ret
;
LPWSTR
sidstr
=
NULL
;
DWORD
sidsize
=
0
;
TRACE
(
"%s %s %s
\n
"
,
debugstr_w
(
szProduct
),
debugstr_w
(
szUserName
),
debugstr_w
(
szSource
));
if
(
LookupAccountNameW
(
NULL
,
szUserName
,
NULL
,
&
sidsize
,
NULL
,
NULL
,
NULL
))
{
PSID
psid
=
msi_alloc
(
sidsize
);
if
(
LookupAccountNameW
(
NULL
,
szUserName
,
psid
,
&
sidsize
,
NULL
,
NULL
,
NULL
))
ConvertSidToStringSidW
(
psid
,
&
sidstr
);
msi_free
(
psid
);
}
ret
=
MsiSourceListAddSourceExW
(
szProduct
,
sidstr
,
MSIINSTALLCONTEXT_USERMANAGED
,
MSISOURCETYPE_NETWORK
,
szSource
,
0
);
if
(
sidstr
)
LocalFree
(
sidstr
);
return
ret
;
}
/******************************************************************
* MsiSourceListAddSourceA (MSI.@)
*/
UINT
WINAPI
MsiSourceListAddSourceA
(
LPCSTR
szProduct
,
LPCSTR
szUserName
,
DWORD
dwReserved
,
LPCSTR
szSource
)
{
INT
ret
;
LPWSTR
szwproduct
;
LPWSTR
szwusername
;
LPWSTR
szwsource
;
szwproduct
=
strdupAtoW
(
szProduct
);
szwusername
=
strdupAtoW
(
szUserName
);
szwsource
=
strdupAtoW
(
szSource
);
ret
=
MsiSourceListAddSourceW
(
szwproduct
,
szwusername
,
0
,
szwsource
);
msi_free
(
szwproduct
);
msi_free
(
szwusername
);
msi_free
(
szwsource
);
return
ret
;
}
/******************************************************************
* MsiSourceListAddSourceExW (MSI.@)
* MsiSourceListAddSourceExW (MSI.@)
*/
*/
UINT
WINAPI
MsiSourceListAddSourceExW
(
LPCWSTR
szProduct
,
LPCWSTR
szUserSid
,
UINT
WINAPI
MsiSourceListAddSourceExW
(
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