4 * Copyright 2000 James Hatheway
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.
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.
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
21 #include "setupapi_private.h"
23 WINE_DEFAULT_DEBUG_CHANNEL(setupapi
);
25 /***********************************************************************
26 * TPWriteProfileString (SETUPX.62)
28 BOOL WINAPI
TPWriteProfileString16( LPCSTR section
, LPCSTR entry
, LPCSTR string
)
30 FIXME( "%s %s %s: stub\n", debugstr_a(section
), debugstr_a(entry
), debugstr_a(string
) );
35 /***********************************************************************
36 * suErrorToIds (SETUPX.61)
38 DWORD WINAPI
suErrorToIds16( WORD w1
, WORD w2
)
40 FIXME( "%x %x: stub\n", w1
, w2
);
44 /***********************************************************************
45 * SetupDiGetDeviceInfoListDetailA (SETUPAPI.@)
47 BOOL WINAPI
SetupDiGetDeviceInfoListDetailA(HDEVINFO devinfo
, PSP_DEVINFO_LIST_DETAIL_DATA_A devinfo_data
)
53 /***********************************************************************
54 * SetupCopyOEMInfA (SETUPAPI.@)
56 BOOL WINAPI
SetupCopyOEMInfA(PCSTR sourceinffile
, PCSTR sourcemedialoc
,
57 DWORD mediatype
, DWORD copystyle
, PSTR destinfname
,
58 DWORD destnamesize
, PDWORD required
,
59 PSTR
*destinfnamecomponent
)
61 FIXME("stub: source %s location %s ...\n", debugstr_a(sourceinffile
),
62 debugstr_a(sourcemedialoc
));
66 /***********************************************************************
67 * SetupCopyOEMInfW (SETUPAPI.@)
69 BOOL WINAPI
SetupCopyOEMInfW(PCWSTR sourceinffile
, PCWSTR sourcemedialoc
,
70 DWORD mediatype
, DWORD copystyle
, PWSTR destinfname
,
71 DWORD destnamesize
, PDWORD required
,
72 PWSTR
*destinfnamecomponent
)
74 FIXME("stub: source %s location %s ...\n", debugstr_w(sourceinffile
),
75 debugstr_w(sourcemedialoc
));
80 /***********************************************************************
81 * SetupGetInfInformationA (SETUPAPI.@)
83 BOOL WINAPI
SetupGetInfInformationA( LPCVOID InfSpec
, DWORD SearchControl
,
84 PSP_INF_INFORMATION ReturnBuffer
,
85 DWORD ReturnBufferSize
, PDWORD RequiredSize
)
87 FIXME("(%p, %ld, %p, %ld, %p) Stub!\n",
88 InfSpec
, SearchControl
, ReturnBuffer
, ReturnBufferSize
, RequiredSize
);
92 /***********************************************************************
93 * SetupInitializeFileLogW(SETUPAPI.@)
95 HANDLE WINAPI
SetupInitializeFileLogW(LPCWSTR LogFileName
, DWORD Flags
)
97 FIXME("Stub %s, 0x%lx\n",debugstr_w(LogFileName
),Flags
);
98 return INVALID_HANDLE_VALUE
;
101 /***********************************************************************
102 * SetupInitializeFileLogA(SETUPAPI.@)
104 HANDLE WINAPI
SetupInitializeFileLogA(LPCSTR LogFileName
, DWORD Flags
)
106 FIXME("Stub %s, 0x%lx\n",debugstr_a(LogFileName
),Flags
);
107 return INVALID_HANDLE_VALUE
;
110 /***********************************************************************
111 * SetupPromptReboot(SETUPAPI.@)
113 INT WINAPI
SetupPromptReboot(HSPFILEQ FileQueue
, HWND Owner
, BOOL ScanOnly
)
117 TCHAR RebootText
[RC_STRING_MAX_SIZE
];
118 TCHAR RebootCaption
[RC_STRING_MAX_SIZE
];
121 TRACE("%p %p %d\n", FileQueue
, Owner
, ScanOnly
);
123 if (ScanOnly
&& !FileQueue
)
125 SetLastError(ERROR_INVALID_PARAMETER
);
131 FIXME("Case 'FileQueue != NULL' not implemented\n");
132 /* In some cases, do 'rc |= SPFILEQ_FILE_IN_USE' */
138 /* We need to ask the question to the user. */
139 rc
|= SPFILEQ_REBOOT_RECOMMENDED
;
140 if (0 == LoadString(hInstance
, IDS_QUERY_REBOOT_TEXT
, RebootText
, RC_STRING_MAX_SIZE
))
142 if (0 == LoadString(hInstance
, IDS_QUERY_REBOOT_CAPTION
, RebootCaption
, RC_STRING_MAX_SIZE
))
144 ret
= MessageBox(Owner
, RebootText
, RebootCaption
, MB_YESNO
| MB_DEFBUTTON1
);
149 if (ExitWindowsEx(EWX_REBOOT
, 0))
150 return rc
| SPFILEQ_REBOOT_IN_PROGRESS
;
155 FIXME("Stub %p %p %d\n", FileQueue
, Owner
, ScanOnly
);
156 SetLastError(ERROR_GEN_FAILURE
);
161 /***********************************************************************
162 * SetupTerminateFileLog(SETUPAPI.@)
164 BOOL WINAPI
SetupTerminateFileLog(HANDLE FileLogHandle
)
166 FIXME ("Stub %p\n",FileLogHandle
);
171 /***********************************************************************
172 * SetupDiGetClassImageList(SETUPAPI.@)
174 BOOL WINAPI
SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData
)
176 FIXME ("Stub %p\n", ClassImageListData
);
177 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
182 /***********************************************************************
183 * SetupDiGetClassImageListExA(SETUPAPI.@)
185 BOOL WINAPI
SetupDiGetClassImageListExA(PSP_CLASSIMAGELIST_DATA ClassImageListData
,
186 PCSTR MachineName
, PVOID Reserved
)
188 FIXME ("Stub %p %s %p\n", ClassImageListData
, debugstr_a(MachineName
), Reserved
);
189 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
194 /***********************************************************************
195 * SetupDiGetClassImageListExW(SETUPAPI.@)
197 BOOL WINAPI
SetupDiGetClassImageListExW(PSP_CLASSIMAGELIST_DATA ClassImageListData
,
198 PCWSTR MachineName
, PVOID Reserved
)
200 FIXME ("Stub %p %s %p\n", ClassImageListData
, debugstr_w(MachineName
), Reserved
);
201 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
206 /***********************************************************************
207 * SetupDiGetClassImageIndex(SETUPAPI.@)
209 BOOL WINAPI
SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA ClassImageListData
,
210 CONST GUID
*ClassGuid
, PINT ImageIndex
)
212 FIXME ("Stub %p %p %p\n", ClassImageListData
, ClassGuid
, ImageIndex
);
213 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
218 /***********************************************************************
219 * SetupDiDestroyClassImageList(SETUPAPI.@)
221 BOOL WINAPI
SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData
)
223 FIXME ("Stub %p\n", ClassImageListData
);
224 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
229 /***********************************************************************
230 * SetupDiLoadClassIcon(SETUPAPI.@)
232 BOOL WINAPI
SetupDiLoadClassIcon(CONST GUID
*ClassGuid
, HICON
*LargeIcon
, PINT MiniIconIndex
)
234 FIXME ("Stub %p %p %p\n", ClassGuid
, LargeIcon
, MiniIconIndex
);
235 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);