mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Implement advapi32.CommandLineFromMsiDescriptor. It's a wrapper for
msi.MsiProvideComponentFromDescriptor.
This commit is contained in:
parent
3de9f4c64d
commit
febe90b263
@ -266,9 +266,24 @@ BOOL WINAPI LogonUserW( LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPa
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
DWORD WINAPI CommandLineFromMsiDescriptor(WCHAR *Descriptor, WCHAR *CommandLine,
|
||||
DWORD *CommandLineLength)
|
||||
typedef UINT (WINAPI *fnMsiProvideComponentFromDescriptor)(LPCWSTR,LPWSTR,DWORD*,DWORD*);
|
||||
|
||||
DWORD WINAPI CommandLineFromMsiDescriptor( WCHAR *szDescriptor,
|
||||
WCHAR *szCommandLine, DWORD *pcchCommandLine )
|
||||
{
|
||||
FIXME("stub (%s)\n", debugstr_w(Descriptor));
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
static const WCHAR szMsi[] = { 'm','s','i',0 };
|
||||
fnMsiProvideComponentFromDescriptor mpcfd;
|
||||
HMODULE hmsi;
|
||||
UINT r = ERROR_CALL_NOT_IMPLEMENTED;
|
||||
|
||||
TRACE("%s %p %p\n", debugstr_w(szDescriptor), szCommandLine, pcchCommandLine);
|
||||
|
||||
hmsi = LoadLibraryW( szMsi );
|
||||
if (!hmsi)
|
||||
return r;
|
||||
mpcfd = (void*) GetProcAddress( hmsi, "MsiProvideComponentFromDescriptorW" );
|
||||
if (mpcfd)
|
||||
r = mpcfd( szDescriptor, szCommandLine, pcchCommandLine, NULL );
|
||||
FreeLibrary( hmsi );
|
||||
return r;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@
|
||||
@ stdcall CloseEventLog (long)
|
||||
@ stdcall CloseServiceHandle(long)
|
||||
# @ stub CloseTrace
|
||||
@ stdcall CommandLineFromMsiDescriptor(wstr wstr ptr)
|
||||
@ stdcall CommandLineFromMsiDescriptor(wstr ptr ptr)
|
||||
# @ stub ComputeAccessTokenFromCodeAuthzLevel
|
||||
@ stdcall ControlService(long long ptr)
|
||||
# @ stub ControlTraceA
|
||||
|
Loading…
Reference in New Issue
Block a user