| 315 | } |
| 316 | |
| 317 | int FindCallback(_In_ HDEVINFO Devs, _In_ PSP_DEVINFO_DATA DevInfo, _In_ DWORD Index, _In_ LPVOID Context) |
| 318 | /*++ |
| 319 | |
| 320 | Routine Description: |
| 321 | |
| 322 | Callback for use by Find/FindAll |
| 323 | just simply display the device |
| 324 | |
| 325 | Arguments: |
| 326 | |
| 327 | Devs )_ uniquely identify the device |
| 328 | DevInfo ) |
| 329 | Index - index of device |
| 330 | Context - GenericContext |
| 331 | |
| 332 | Return 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++; |
nothing calls this directly
no test coverage detected