Implement advapi32.CommandLineFromMsiDescriptor. It's a wrapper for

msi.MsiProvideComponentFromDescriptor.
This commit is contained in:
Mike McCormack 2005-11-04 11:15:18 +00:00 committed by Alexandre Julliard
parent 3de9f4c64d
commit febe90b263
2 changed files with 20 additions and 5 deletions

View File

@ -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;
}

View File

@ -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