250{
253 INFCONTEXT MfgContext, DevContext, MiscContext;
255
261 {
264 }
265
269 &MfgContext))
270 {
271 DPRINT(
"No Manufacurer section found!\n");
272 goto done;
273 }
274
275 for (;;)
276 {
278 1,
279 szLineBuffer,
282 break;
283
284 DPRINT(
"Manufacturer: %S\n", szLineBuffer);
286 szLineBuffer,
288 &DevContext))
289 break;
290
291 for (;;)
292 {
294 2,
295 szLineBuffer,
298 break;
299
300 DPRINT(
"Device: %S\n", szLineBuffer);
301 if (
_wcsicmp(szLineBuffer, pszComponentId) == 0)
302 {
304
305
307 1,
309 0,
311
313 0,
315 if (pComponentInfo->pszInfSection)
316 {
318 1,
319 pComponentInfo->pszInfSection,
322 }
323
324
326 0,
328 0,
330
332 0,
334 if (pComponentInfo->pszDescription)
335 {
337 0,
338 pComponentInfo->pszDescription,
341 }
342
343
347 &MiscContext))
348 {
350 1,
352 0,
354
356 0,
358 if (pComponentInfo->pszInfSection)
359 {
361 1,
362 pComponentInfo->pszClassGuid,
365 }
366 }
367
368
370 pComponentInfo->pszInfSection,
372 &MiscContext))
373 {
375 1,
376 (
PINT)&pComponentInfo->dwCharacteristics);
377 }
378
381 }
382
384 break;
385 }
386
388 break;
389 }
390
391done:
394
396}
#define INVALID_HANDLE_VALUE
static DWORD DWORD * dwLength
HINF WINAPI SetupOpenInfFileW(PCWSTR name, PCWSTR class, DWORD style, UINT *error)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
BOOL WINAPI SetupGetStringFieldW(IN PINFCONTEXT Context, IN ULONG FieldIndex, OUT PWSTR ReturnBuffer, IN ULONG ReturnBufferSize, OUT PULONG RequiredSize)
BOOL WINAPI SetupFindFirstLineW(IN HINF InfHandle, IN PCWSTR Section, IN PCWSTR Key, IN OUT PINFCONTEXT Context)
BOOL WINAPI SetupGetIntField(IN PINFCONTEXT Context, IN ULONG FieldIndex, OUT INT *IntegerValue)
BOOL WINAPI SetupFindNextLine(IN PINFCONTEXT ContextIn, OUT PINFCONTEXT ContextOut)
VOID WINAPI SetupCloseInfFile(IN HINF InfHandle)