Merged msacm and msacm32 dlls.
[wine] / dlls / setupx / setupx_main.c
1 /*
2  *      SETUPX library
3  *
4  *      Copyright 1998  Andreas Mohr
5  *
6  * FIXME: Rather non-functional functions for now.
7  */
8
9 #include "windows.h"
10 #include "debugtools.h"
11
12 DEFAULT_DEBUG_CHANNEL(setupx);
13
14 /***********************************************************************
15  *              SURegOpenKey
16  */
17 DWORD WINAPI SURegOpenKey( HKEY hkey, LPCSTR lpszSubKey, LPHKEY retkey )
18 {
19     FIXME("(%x,%s,%p), semi-stub.\n",hkey,debugstr_a(lpszSubKey),retkey);
20     return RegOpenKeyA( hkey, lpszSubKey, retkey );
21 }
22
23 /***********************************************************************
24  *              SURegQueryValueEx
25  */
26 DWORD WINAPI SURegQueryValueEx( HKEY hkey, LPSTR lpszValueName,
27                                 LPDWORD lpdwReserved, LPDWORD lpdwType,
28                                 LPBYTE lpbData, LPDWORD lpcbData )
29 {
30     FIXME("(%x,%s,%p,%p,%p,%ld), semi-stub.\n",hkey,debugstr_a(lpszValueName),
31           lpdwReserved,lpdwType,lpbData,lpcbData?*lpcbData:0);
32     return RegQueryValueExA( hkey, lpszValueName, lpdwReserved, lpdwType,
33                                lpbData, lpcbData );
34 }
35
36 /*
37  * hwnd = parent window
38  * hinst = instance of SETUPX.DLL
39  * lpszCmdLine = e.g. "DefaultInstall 132 C:\MYINSTALL\MYDEV.INF"
40  * Here "DefaultInstall" is the .inf file section to be installed (optional).
41  * 132 is the standard parameter, it seems.
42  * 133 means don't prompt user for reboot.
43  * 
44  * nCmdShow = nCmdShow of CreateProcess
45  * FIXME: is the return type correct ?
46  */
47 DWORD WINAPI InstallHinfSection16( HWND16 hwnd, HINSTANCE16 hinst, LPCSTR lpszCmdLine, INT16 nCmdShow)
48 {
49         FIXME("(%04x, %04x, %s, %d), stub.\n", hwnd, hinst, lpszCmdLine, nCmdShow);
50         return 0;
51 }