Added some stubs.
[wine] / dlls / setupapi / stubs.c
1 /*
2  * SetupAPI stubs
3  *
4  * Copyright 2000 James Hatheway
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include "wine/debug.h"
22 #include "windef.h"
23 #include "setupapi.h"
24
25 WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
26
27
28 /***********************************************************************
29  *              SetupIterateCabinetA (SETUPAPI.@)
30  */
31 BOOL WINAPI SetupIterateCabinetA(PCSTR CabinetFile, DWORD Reserved,
32                                  PSP_FILE_CALLBACK_A MsgHandler, PVOID Context)
33 {
34         FIXME("not implemented (setupapi.dll) \n");
35         return 0;
36 }
37
38 /***********************************************************************
39  *              SetupIterateCabinetW (SETUPAPI.@)
40  */
41 BOOL WINAPI SetupIterateCabinetW(PWSTR CabinetFile, DWORD Reserved,
42                                  PSP_FILE_CALLBACK_W MsgHandler, PVOID Context)
43 {
44         FIXME("not implemented (setupapi.dll) \n");
45         return 0;
46 }
47
48
49 /***********************************************************************
50  *              TPWriteProfileString (SETUPX.62)
51  */
52 BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
53 {
54     FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
55     return TRUE;
56 }
57
58
59 /***********************************************************************
60  *              suErrorToIds  (SETUPX.61)
61  */
62 DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
63 {
64     FIXME( "%x %x: stub\n", w1, w2 );
65     return 0;
66 }
67
68 /***********************************************************************
69  *              SetupDiOpenClassRegKeyExW  (SETUPAPI.@)
70  *
71  * WINAPI in description not given
72  */
73 HKEY WINAPI SetupDiOpenClassRegKeyExW(LPGUID class, DWORD access, DWORD flags, LPCWSTR  machine, PVOID reserved)
74 {
75   FIXME("\n");
76   return INVALID_HANDLE_VALUE;
77 }
78
79 /***********************************************************************
80  *              SetupDiGetClassDescriptionExW  (SETUPAPI.@)
81  */
82 BOOL WINAPI SetupDiGetClassDescriptionExW (GUID* class, LPCWSTR desc, DWORD size, PDWORD required, LPCWSTR  machine, PVOID reserved)
83 {
84   FIXME("\n");
85   return FALSE;
86 }
87
88 /***********************************************************************
89  *              SetupDiClassNameFromGuidExW  (SETUPAPI.@)
90  */
91 BOOL WINAPI SetupDiClassNameFromGuidExW (GUID* class, LPCWSTR desc, DWORD size, PDWORD required, LPCWSTR  machine, PVOID reserved)
92 {
93   FIXME("\n");
94   return FALSE;
95 }
96
97 /***********************************************************************
98  *              SetupDiBuildClassInfoListExW  (SETUPAPI.@)
99  */
100 BOOL WINAPI SetupDiBuildClassInfoListExW(DWORD flags, LPGUID list, DWORD size, PDWORD required,  LPCWSTR  machine, PVOID reserved)
101 {
102   FIXME("\n");
103   return FALSE;
104 }
105
106 /***********************************************************************
107  *              SetupDiGetDeviceInfoListDetailW  (SETUPAPI.@)
108  */
109 BOOL WINAPI SetupDiGetDeviceInfoListDetailW(HDEVINFO devinfo, PSP_DEVINFO_DATA devinfo_data )
110 {
111   FIXME("\n");
112   return FALSE;
113 }
114
115 /***********************************************************************
116  *              SetupDiCreateDeviceInfoListExW  (SETUPAPI.@)
117  */
118 HDEVINFO WINAPI SetupDiCreateDeviceInfoListExW(LPGUID class, HWND parend, LPCWSTR machine, PVOID reserved)
119 {
120   FIXME("\n");
121   return FALSE;
122 }
123
124 /***********************************************************************
125  *                (SETUPAPI.@)
126  *
127  * NO WINAPI in description given
128  */
129 HDEVINFO WINAPI SetupDiGetClassDevsExW(LPGUID class, LPCWSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, LPCWSTR machine, PVOID reserved)
130 {
131   FIXME("\n");
132   return FALSE;
133 }
134
135 /***********************************************************************
136  *              SetupDiClassGuidsFromNameExW  (SETUPAPI.@)
137  */
138 BOOL WINAPI SetupDiClassGuidsFromNameExW(LPCWSTR class, LPGUID list, DWORD size, PDWORD required,  LPCWSTR  machine, PVOID reserved)
139 {
140   FIXME("\n");
141   return FALSE;
142 }
143
144 /***********************************************************************
145  *              CM_Connect_MachineW  (SETUPAPI.@)
146  */
147 DWORD WINAPI CM_Connect_MachineW(LPCWSTR name, void * machine)
148 {
149 #define  CR_SUCCESS       0x00000000
150 #define  CR_ACCESS_DENIED 0x00000033
151   FIXME("\n");
152   return  CR_ACCESS_DENIED;
153 }
154
155 /***********************************************************************
156  *              CM_Disconnect_Machine  (SETUPAPI.@)
157  */
158 DWORD WINAPI CM_Disconnect_Machine(DWORD handle)
159 {
160   FIXME("\n");
161   return  CR_SUCCESS;
162
163 }
164
165 /***********************************************************************
166  *              SetupCopyOEMInfA  (SETUPAPI.@)
167  */
168 BOOL WINAPI SetupCopyOEMInfA(LPCSTR sourceinffile, LPCSTR sourcemedialoc,
169                             DWORD mediatype, DWORD copystyle, LPSTR destinfname,
170                             DWORD destnamesize, PDWORD required,
171                             LPSTR destinfnamecomponent)
172 {
173   FIXME("stub: source %s location %s ...\n",sourceinffile, sourcemedialoc);
174   return FALSE;
175 }
176
177 /***********************************************************************
178  *              InstallHinfSection  (SETUPAPI.@)
179  */
180 void WINAPI InstallHinfSection(HWND hwnd, HINSTANCE handle, LPCSTR cmdline, INT show)
181 {
182     FIXME("stub, hwnd %p, handle %p, cmdline %s\n", hwnd, handle, debugstr_a(cmdline));
183 }