ReactOS  0.4.15-dev-3453-gff89651
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 */
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
DWORD WINAPI CommandLineFromMsiDescriptor(WCHAR *szDescriptor, WCHAR *szCommandLine, DWORD *pcchCommandLine)
Definition: msi.c:22
static LPWSTR
Definition: msi.c:58
#define LoadLibraryW(x)
Definition: compat.h:606
static UINT(WINAPI *pMsiGetFileHashA)(LPCSTR
#define TRACE(s)
Definition: solgame.cpp:4
#define FreeLibrary(x)
Definition: compat.h:607
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
static const WCHAR szMsi[]
Definition: msipriv.h:1119
UINT(WINAPI * fnMsiProvideComponentFromDescriptor)(LPCWSTR, LPWSTR, DWORD *, DWORD *)
Definition: msi.c:20
WINE_DEFAULT_DEBUG_CHANNEL(advapi)
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
#define GetProcAddress(x, y)
Definition: compat.h:612
static LPCWSTR
Definition: msi.c:58