Commit febe90b2 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Implement advapi32.CommandLineFromMsiDescriptor. It's a wrapper for

msi.MsiProvideComponentFromDescriptor.
parent 3de9f4c6
...@@ -266,9 +266,24 @@ BOOL WINAPI LogonUserW( LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPa ...@@ -266,9 +266,24 @@ BOOL WINAPI LogonUserW( LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPa
return TRUE; return TRUE;
} }
DWORD WINAPI CommandLineFromMsiDescriptor(WCHAR *Descriptor, WCHAR *CommandLine, typedef UINT (WINAPI *fnMsiProvideComponentFromDescriptor)(LPCWSTR,LPWSTR,DWORD*,DWORD*);
DWORD *CommandLineLength)
DWORD WINAPI CommandLineFromMsiDescriptor( WCHAR *szDescriptor,
WCHAR *szCommandLine, DWORD *pcchCommandLine )
{ {
FIXME("stub (%s)\n", debugstr_w(Descriptor)); static const WCHAR szMsi[] = { 'm','s','i',0 };
return ERROR_CALL_NOT_IMPLEMENTED; 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 @@ ...@@ -62,7 +62,7 @@
@ stdcall CloseEventLog (long) @ stdcall CloseEventLog (long)
@ stdcall CloseServiceHandle(long) @ stdcall CloseServiceHandle(long)
# @ stub CloseTrace # @ stub CloseTrace
@ stdcall CommandLineFromMsiDescriptor(wstr wstr ptr) @ stdcall CommandLineFromMsiDescriptor(wstr ptr ptr)
# @ stub ComputeAccessTokenFromCodeAuthzLevel # @ stub ComputeAccessTokenFromCodeAuthzLevel
@ stdcall ControlService(long long ptr) @ stdcall ControlService(long long ptr)
# @ stub ControlTraceA # @ stub ControlTraceA
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment