ReactOS 0.4.15-dev-7842-g558ab78
msi.c
Go to the documentation of this file.
1/*
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
8 */
9
10#include <advapi32.h>
11
13#ifndef _UNICODE
14#define debugstr_aw debugstr_a
15#else
16#define debugstr_aw debugstr_w
17#endif
18
19
21
23 WCHAR *szCommandLine, DWORD *pcchCommandLine )
24{
25 static const WCHAR szMsi[] = { 'm','s','i',0 };
27 HMODULE hmsi;
29
30 TRACE("%S %p %p\n", szDescriptor, szCommandLine, pcchCommandLine);
31
32 hmsi = LoadLibraryW( szMsi );
33 if (!hmsi)
34 return r;
35 mpcfd = (void*) GetProcAddress( hmsi, "MsiProvideComponentFromDescriptorW" );
36 if (mpcfd)
37 r = mpcfd( szDescriptor, szCommandLine, pcchCommandLine, NULL );
38 FreeLibrary( hmsi );
39 return r;
40}
41
42/* EOF */
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
#define NULL
Definition: types.h:112
DWORD WINAPI CommandLineFromMsiDescriptor(WCHAR *szDescriptor, WCHAR *szCommandLine, DWORD *pcchCommandLine)
Definition: msi.c:22
UINT(WINAPI * fnMsiProvideComponentFromDescriptor)(LPCWSTR, LPWSTR, DWORD *, DWORD *)
Definition: msi.c:20
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
#define LoadLibraryW(x)
Definition: compat.h:747
unsigned long DWORD
Definition: ntddk_ex.h:95
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
unsigned int UINT
Definition: ndis.h:50
#define TRACE(s)
Definition: solgame.cpp:4
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185