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
12 WINE_DEFAULT_DEBUG_CHANNEL(advapi
);
14 #define debugstr_aw debugstr_a
16 #define debugstr_aw debugstr_w
20 typedef UINT (WINAPI
*fnMsiProvideComponentFromDescriptor
)(LPCWSTR
,LPWSTR
,DWORD
*,DWORD
*);
22 DWORD WINAPI
CommandLineFromMsiDescriptor( WCHAR
*szDescriptor
,
23 WCHAR
*szCommandLine
, DWORD
*pcchCommandLine
)
25 static const WCHAR szMsi
[] = { 'm','s','i',0 };
26 fnMsiProvideComponentFromDescriptor mpcfd
;
28 UINT r
= ERROR_CALL_NOT_IMPLEMENTED
;
30 TRACE("%S %p %p\n", szDescriptor
, szCommandLine
, pcchCommandLine
);
32 hmsi
= LoadLibraryW( szMsi
);
35 mpcfd
= (void*) GetProcAddress( hmsi
, "MsiProvideComponentFromDescriptorW" );
37 r
= mpcfd( szDescriptor
, szCommandLine
, pcchCommandLine
, NULL
);