| 845 | } |
| 846 | |
| 847 | BOOL DumpDeviceHwIds(_In_ HDEVINFO Devs, _In_ PSP_DEVINFO_DATA DevInfo) |
| 848 | /*++ |
| 849 | |
| 850 | Routine Description: |
| 851 | |
| 852 | Write device instance & description to stdout |
| 853 | <tab>Hardware ID's |
| 854 | <tab><tab>ID |
| 855 | ... |
| 856 | <tab>Compatible ID's |
| 857 | <tab><tab>ID |
| 858 | ... |
| 859 | or |
| 860 | <tab>No Hardware ID's for device |
| 861 | |
| 862 | Arguments: |
| 863 | |
| 864 | Devs )_ uniquely identify device |
| 865 | DevInfo ) |
| 866 | |
| 867 | Return Value: |
| 868 | |
| 869 | none |
| 870 | |
| 871 | --*/ |
| 872 | { |
| 873 | LPTSTR * hwIdArray = GetDevMultiSz(Devs,DevInfo,SPDRP_HARDWAREID); |
| 874 | LPTSTR * compatIdArray = GetDevMultiSz(Devs,DevInfo,SPDRP_COMPATIBLEIDS); |
| 875 | BOOL displayed = FALSE; |
| 876 | |
| 877 | if(hwIdArray && hwIdArray[0]) { |
| 878 | displayed = TRUE; |
| 879 | Padding(1); |
| 880 | FormatToStream(stdout, MSG_DUMP_HWIDS); |
| 881 | DumpArray(2,hwIdArray); |
| 882 | } |
| 883 | if(compatIdArray && compatIdArray[0]) { |
| 884 | displayed = TRUE; |
| 885 | Padding(1); |
| 886 | FormatToStream(stdout, MSG_DUMP_COMPATIDS); |
| 887 | DumpArray(2,compatIdArray); |
| 888 | } |
| 889 | if(!displayed) { |
| 890 | Padding(1); |
| 891 | FormatToStream(stdout, MSG_DUMP_NO_HWIDS); |
| 892 | } |
| 893 | |
| 894 | DelMultiSz(hwIdArray); |
| 895 | DelMultiSz(compatIdArray); |
| 896 | |
| 897 | return TRUE; |
| 898 | } |
| 899 | |
| 900 | BOOL DumpDeviceDriverNodes(_In_ HDEVINFO Devs, _In_ PSP_DEVINFO_DATA DevInfo) |
| 901 | /*++ |
no test coverage detected