MCPcopy Create free account
hub / github.com/NullArray/WinKernel-Resources / FindCallback

Function FindCallback

Drivers/Driver-SRC/setup/devcon/cmds.cpp:317–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317int FindCallback(_In_ HDEVINFO Devs, _In_ PSP_DEVINFO_DATA DevInfo, _In_ DWORD Index, _In_ LPVOID Context)
318/*++
319
320Routine Description:
321
322 Callback for use by Find/FindAll
323 just simply display the device
324
325Arguments:
326
327 Devs )_ uniquely identify the device
328 DevInfo )
329 Index - index of device
330 Context - GenericContext
331
332Return Value:
333
334 EXIT_xxxx
335
336--*/
337{
338 GenericContext *pFindContext = (GenericContext*)Context;
339
340 UNREFERENCED_PARAMETER(Index);
341
342 if(!pFindContext->control) {
343 DumpDevice(Devs,DevInfo);
344 pFindContext->count++;
345 return EXIT_OK;
346 }
347 if(!DumpDeviceWithInfo(Devs,DevInfo,NULL)) {
348 return EXIT_OK;
349 }
350 if(pFindContext->control&FIND_DEVICE) {
351 DumpDeviceDescr(Devs,DevInfo);
352 }
353 if(pFindContext->control&FIND_CLASS) {
354 DumpDeviceClass(Devs,DevInfo);
355 }
356 if(pFindContext->control&FIND_STATUS) {
357 DumpDeviceStatus(Devs,DevInfo);
358 }
359 if(pFindContext->control&FIND_RESOURCES) {
360 DumpDeviceResources(Devs,DevInfo);
361 }
362 if(pFindContext->control&FIND_DRIVERFILES) {
363 DumpDeviceDriverFiles(Devs,DevInfo);
364 }
365 if(pFindContext->control&FIND_STACK) {
366 DumpDeviceStack(Devs,DevInfo);
367 }
368 if(pFindContext->control&FIND_HWIDS) {
369 DumpDeviceHwIds(Devs,DevInfo);
370 }
371 if (pFindContext->control&FIND_DRIVERNODES) {
372 DumpDeviceDriverNodes(Devs,DevInfo);
373 }
374 pFindContext->count++;

Callers

nothing calls this directly

Calls 10

DumpDeviceFunction · 0.85
DumpDeviceWithInfoFunction · 0.85
DumpDeviceDescrFunction · 0.85
DumpDeviceClassFunction · 0.85
DumpDeviceStatusFunction · 0.85
DumpDeviceResourcesFunction · 0.85
DumpDeviceDriverFilesFunction · 0.85
DumpDeviceStackFunction · 0.85
DumpDeviceHwIdsFunction · 0.85
DumpDeviceDriverNodesFunction · 0.85

Tested by

no test coverage detected