ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

msi.c
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:       See COPYING in the top level directory
00003  * PROJECT:         ReactOS system libraries
00004  * FILE:            lib/advapi32/misc/msi.c
00005  * PURPOSE:         advapi32.dll MSI interface funcs
00006  * NOTES:           Copied from Wine
00007  *                  Copyright 1995 Sven Verdoolaege
00008  */
00009 
00010 #include <advapi32.h>
00011 
00012 WINE_DEFAULT_DEBUG_CHANNEL(advapi);
00013 #ifndef _UNICODE
00014 #define debugstr_aw debugstr_a
00015 #else
00016 #define debugstr_aw debugstr_w
00017 #endif
00018 
00019 
00020 typedef UINT (WINAPI *fnMsiProvideComponentFromDescriptor)(LPCWSTR,LPWSTR,DWORD*,DWORD*);
00021 
00022 DWORD WINAPI CommandLineFromMsiDescriptor( WCHAR *szDescriptor,
00023                     WCHAR *szCommandLine, DWORD *pcchCommandLine )
00024 {
00025     static const WCHAR szMsi[] = { 'm','s','i',0 };
00026     fnMsiProvideComponentFromDescriptor mpcfd;
00027     HMODULE hmsi;
00028     UINT r = ERROR_CALL_NOT_IMPLEMENTED;
00029 
00030     TRACE("%S %p %p\n", szDescriptor, szCommandLine, pcchCommandLine);
00031 
00032     hmsi = LoadLibraryW( szMsi );
00033     if (!hmsi)
00034         return r;
00035     mpcfd = (void*) GetProcAddress( hmsi, "MsiProvideComponentFromDescriptorW" );
00036     if (mpcfd)
00037         r = mpcfd( szDescriptor, szCommandLine, pcchCommandLine, NULL );
00038     FreeLibrary( hmsi );
00039     return r;
00040 }
00041 
00042 /* EOF */

Generated on Sun May 27 2012 04:22:40 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.