Francois Jacques | df5e579 | 2000-07-08 18:27:03 +0000 | [diff] [blame] | 1 | /* |
| 2 | * SetupAPI stubs |
| 3 | * |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 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 |
Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame^] | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Francois Jacques | df5e579 | 2000-07-08 18:27:03 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
Alexandre Julliard | e37c6e1 | 2003-09-05 23:08:26 +0000 | [diff] [blame] | 21 | #include <stdarg.h> |
| 22 | |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 23 | #include "wine/debug.h" |
Francois Jacques | df5e579 | 2000-07-08 18:27:03 +0000 | [diff] [blame] | 24 | #include "windef.h" |
Alexandre Julliard | e37c6e1 | 2003-09-05 23:08:26 +0000 | [diff] [blame] | 25 | #include "winbase.h" |
| 26 | #include "wingdi.h" |
| 27 | #include "winuser.h" |
| 28 | #include "winnls.h" |
Steven Edwards | b2b7262 | 2003-09-11 02:58:46 +0000 | [diff] [blame] | 29 | #include "winreg.h" |
James Hatheway | cb655b0 | 2000-11-06 20:24:43 +0000 | [diff] [blame] | 30 | #include "setupapi.h" |
| 31 | |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 32 | WINE_DEFAULT_DEBUG_CHANNEL(setupapi); |
Francois Jacques | df5e579 | 2000-07-08 18:27:03 +0000 | [diff] [blame] | 33 | |
James Hatheway | cb655b0 | 2000-11-06 20:24:43 +0000 | [diff] [blame] | 34 | /*********************************************************************** |
Patrik Stridvall | 14c96c1 | 2002-04-03 02:37:09 +0000 | [diff] [blame] | 35 | * TPWriteProfileString (SETUPX.62) |
James Juran | c85144b | 2001-01-17 20:17:46 +0000 | [diff] [blame] | 36 | */ |
Alexandre Julliard | 5068347 | 2002-04-02 02:57:50 +0000 | [diff] [blame] | 37 | BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string ) |
James Juran | c85144b | 2001-01-17 20:17:46 +0000 | [diff] [blame] | 38 | { |
Alexandre Julliard | 5068347 | 2002-04-02 02:57:50 +0000 | [diff] [blame] | 39 | FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) ); |
| 40 | return TRUE; |
James Hatheway | cb655b0 | 2000-11-06 20:24:43 +0000 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | |
| 44 | /*********************************************************************** |
Patrik Stridvall | 14c96c1 | 2002-04-03 02:37:09 +0000 | [diff] [blame] | 45 | * suErrorToIds (SETUPX.61) |
James Hatheway | cb655b0 | 2000-11-06 20:24:43 +0000 | [diff] [blame] | 46 | */ |
Alexandre Julliard | 5068347 | 2002-04-02 02:57:50 +0000 | [diff] [blame] | 47 | DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 ) |
James Hatheway | cb655b0 | 2000-11-06 20:24:43 +0000 | [diff] [blame] | 48 | { |
Alexandre Julliard | 5068347 | 2002-04-02 02:57:50 +0000 | [diff] [blame] | 49 | FIXME( "%x %x: stub\n", w1, w2 ); |
| 50 | return 0; |
James Hatheway | cb655b0 | 2000-11-06 20:24:43 +0000 | [diff] [blame] | 51 | } |
Uwe Bonnes | d241176 | 2002-10-10 19:23:57 +0000 | [diff] [blame] | 52 | |
Patrik Stridvall | c72255c | 2002-10-29 21:31:26 +0000 | [diff] [blame] | 53 | /*********************************************************************** |
Steven Edwards | 6518b5c | 2004-01-05 21:12:21 +0000 | [diff] [blame] | 54 | * SetupDiGetDeviceInfoListDetailA (SETUPAPI.@) |
Patrik Stridvall | c72255c | 2002-10-29 21:31:26 +0000 | [diff] [blame] | 55 | */ |
Steven Edwards | 6518b5c | 2004-01-05 21:12:21 +0000 | [diff] [blame] | 56 | BOOL WINAPI SetupDiGetDeviceInfoListDetailA(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_A devinfo_data ) |
Uwe Bonnes | f227cfa | 2003-10-27 22:05:33 +0000 | [diff] [blame] | 57 | { |
| 58 | FIXME("\n"); |
| 59 | return FALSE; |
| 60 | } |
| 61 | |
| 62 | /*********************************************************************** |
| 63 | * SetupDiGetDeviceInfoListDetailW (SETUPAPI.@) |
| 64 | */ |
Steven Edwards | 6518b5c | 2004-01-05 21:12:21 +0000 | [diff] [blame] | 65 | BOOL WINAPI SetupDiGetDeviceInfoListDetailW(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_W devinfo_data ) |
Uwe Bonnes | d241176 | 2002-10-10 19:23:57 +0000 | [diff] [blame] | 66 | { |
| 67 | FIXME("\n"); |
| 68 | return FALSE; |
| 69 | } |
Patrik Stridvall | c72255c | 2002-10-29 21:31:26 +0000 | [diff] [blame] | 70 | |
| 71 | /*********************************************************************** |
Patrik Stridvall | c72255c | 2002-10-29 21:31:26 +0000 | [diff] [blame] | 72 | * (SETUPAPI.@) |
| 73 | * |
| 74 | * NO WINAPI in description given |
| 75 | */ |
Steven Edwards | 6518b5c | 2004-01-05 21:12:21 +0000 | [diff] [blame] | 76 | HDEVINFO WINAPI SetupDiGetClassDevsExA(const GUID *class, PCSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCSTR machine, PVOID reserved) |
Uwe Bonnes | f227cfa | 2003-10-27 22:05:33 +0000 | [diff] [blame] | 77 | { |
| 78 | FIXME("filter %s machine %s\n",debugstr_a(filter),debugstr_a(machine)); |
| 79 | return FALSE; |
| 80 | } |
| 81 | |
| 82 | /*********************************************************************** |
| 83 | * (SETUPAPI.@) |
| 84 | * |
| 85 | * NO WINAPI in description given |
| 86 | */ |
Steven Edwards | 6518b5c | 2004-01-05 21:12:21 +0000 | [diff] [blame] | 87 | HDEVINFO WINAPI SetupDiGetClassDevsExW(const GUID *class, PCWSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCWSTR machine, PVOID reserved) |
Uwe Bonnes | d241176 | 2002-10-10 19:23:57 +0000 | [diff] [blame] | 88 | { |
| 89 | FIXME("\n"); |
| 90 | return FALSE; |
| 91 | } |
Patrik Stridvall | c72255c | 2002-10-29 21:31:26 +0000 | [diff] [blame] | 92 | |
| 93 | /*********************************************************************** |
Patrik Stridvall | c72255c | 2002-10-29 21:31:26 +0000 | [diff] [blame] | 94 | * CM_Connect_MachineW (SETUPAPI.@) |
| 95 | */ |
Uwe Bonnes | d241176 | 2002-10-10 19:23:57 +0000 | [diff] [blame] | 96 | DWORD WINAPI CM_Connect_MachineW(LPCWSTR name, void * machine) |
| 97 | { |
| 98 | #define CR_SUCCESS 0x00000000 |
| 99 | #define CR_ACCESS_DENIED 0x00000033 |
| 100 | FIXME("\n"); |
| 101 | return CR_ACCESS_DENIED; |
| 102 | } |
Patrik Stridvall | c72255c | 2002-10-29 21:31:26 +0000 | [diff] [blame] | 103 | |
| 104 | /*********************************************************************** |
| 105 | * CM_Disconnect_Machine (SETUPAPI.@) |
| 106 | */ |
Uwe Bonnes | d241176 | 2002-10-10 19:23:57 +0000 | [diff] [blame] | 107 | DWORD WINAPI CM_Disconnect_Machine(DWORD handle) |
| 108 | { |
| 109 | FIXME("\n"); |
| 110 | return CR_SUCCESS; |
| 111 | |
| 112 | } |
Uwe Bonnes | 5eb88a0 | 2003-04-02 23:19:14 +0000 | [diff] [blame] | 113 | |
| 114 | /*********************************************************************** |
Matthew Davison | 2e2f666 | 2004-05-07 00:40:44 +0000 | [diff] [blame] | 115 | * CM_Get_Device_ID_ListA (SETUPAPI.@) |
| 116 | */ |
| 117 | |
| 118 | DWORD WINAPI CM_Get_Device_ID_ListA( |
| 119 | PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags ) |
| 120 | { |
| 121 | FIXME("%p %p %ld %ld\n", pszFilter, Buffer, BufferLen, ulFlags ); |
| 122 | memset(Buffer,0,2); |
| 123 | return CR_SUCCESS; |
| 124 | } |
| 125 | |
| 126 | |
| 127 | /*********************************************************************** |
Uwe Bonnes | 5eb88a0 | 2003-04-02 23:19:14 +0000 | [diff] [blame] | 128 | * SetupCopyOEMInfA (SETUPAPI.@) |
| 129 | */ |
Steven Edwards | 6518b5c | 2004-01-05 21:12:21 +0000 | [diff] [blame] | 130 | BOOL WINAPI SetupCopyOEMInfA(PCSTR sourceinffile, PCSTR sourcemedialoc, |
| 131 | DWORD mediatype, DWORD copystyle, PSTR destinfname, |
Uwe Bonnes | 5eb88a0 | 2003-04-02 23:19:14 +0000 | [diff] [blame] | 132 | DWORD destnamesize, PDWORD required, |
Steven Edwards | 6518b5c | 2004-01-05 21:12:21 +0000 | [diff] [blame] | 133 | PSTR *destinfnamecomponent) |
Uwe Bonnes | 5eb88a0 | 2003-04-02 23:19:14 +0000 | [diff] [blame] | 134 | { |
Hans Leidekker | 64dcb35 | 2005-05-04 09:47:28 +0000 | [diff] [blame] | 135 | FIXME("stub: source %s location %s ...\n", debugstr_a(sourceinffile), |
| 136 | debugstr_a(sourcemedialoc)); |
| 137 | return FALSE; |
| 138 | } |
| 139 | |
| 140 | /*********************************************************************** |
| 141 | * SetupCopyOEMInfW (SETUPAPI.@) |
| 142 | */ |
| 143 | BOOL WINAPI SetupCopyOEMInfW(PCWSTR sourceinffile, PCWSTR sourcemedialoc, |
| 144 | DWORD mediatype, DWORD copystyle, PWSTR destinfname, |
| 145 | DWORD destnamesize, PDWORD required, |
| 146 | PWSTR *destinfnamecomponent) |
| 147 | { |
| 148 | FIXME("stub: source %s location %s ...\n", debugstr_w(sourceinffile), |
| 149 | debugstr_w(sourcemedialoc)); |
Uwe Bonnes | 5eb88a0 | 2003-04-02 23:19:14 +0000 | [diff] [blame] | 150 | return FALSE; |
| 151 | } |
| 152 | |
| 153 | /*********************************************************************** |
Aric Stewart | bb86eb6 | 2004-03-16 19:13:18 +0000 | [diff] [blame] | 154 | * SetupInitializeFileLogW(SETUPAPI.@) |
| 155 | */ |
| 156 | HANDLE WINAPI SetupInitializeFileLogW(LPWSTR LogFileName, DWORD Flags) |
| 157 | { |
| 158 | FIXME("Stub %s, 0x%lx\n",debugstr_w(LogFileName),Flags); |
| 159 | return INVALID_HANDLE_VALUE; |
| 160 | } |
| 161 | |
| 162 | /*********************************************************************** |
| 163 | * SetupInitializeFileLogA(SETUPAPI.@) |
| 164 | */ |
| 165 | HANDLE WINAPI SetupInitializeFileLogA(LPSTR LogFileName, DWORD Flags) |
| 166 | { |
| 167 | FIXME("Stub %s, 0x%lx\n",debugstr_a(LogFileName),Flags); |
| 168 | return INVALID_HANDLE_VALUE; |
| 169 | } |
| 170 | |
| 171 | /*********************************************************************** |
| 172 | * SetupTerminateFileLog(SETUPAPI.@) |
| 173 | */ |
| 174 | BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle) |
| 175 | { |
| 176 | FIXME ("Stub %p\n",FileLogHandle); |
| 177 | return TRUE; |
| 178 | } |
Mike McCormack | 07e9ec4 | 2006-04-04 21:04:32 +0900 | [diff] [blame] | 179 | |
| 180 | /*********************************************************************** |
| 181 | * RegistryDelnode(SETUPAPI.@) |
| 182 | */ |
| 183 | BOOL WINAPI RegistryDelnode(DWORD x, DWORD y) |
| 184 | { |
| 185 | FIXME("%08lx %08lx: stub\n", x, y); |
| 186 | return FALSE; |
| 187 | } |