2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/advapi32/misc/msi.c
5 * PURPOSE: advapi32.dll MSI interface funcs
6 * NOTES: Copied from Wine
7 * Copyright 1995 Sven Verdoolaege
15 typedef UINT (WINAPI
*fnMsiProvideComponentFromDescriptor
)(LPCWSTR
,LPWSTR
,DWORD
*,DWORD
*);
17 DWORD WINAPI
CommandLineFromMsiDescriptor( WCHAR
*szDescriptor
,
18 WCHAR
*szCommandLine
, DWORD
*pcchCommandLine
)
20 static const WCHAR szMsi
[] = { 'm','s','i',0 };
21 fnMsiProvideComponentFromDescriptor mpcfd
;
23 UINT r
= ERROR_CALL_NOT_IMPLEMENTED
;
25 DPRINT("%S %p %p\n", szDescriptor
, szCommandLine
, pcchCommandLine
);
27 hmsi
= LoadLibraryW( szMsi
);
30 mpcfd
= (void*) GetProcAddress( hmsi
, "MsiProvideComponentFromDescriptorW" );
32 r
= mpcfd( szDescriptor
, szCommandLine
, pcchCommandLine
, NULL
);