| 112 | } |
| 113 | |
| 114 | BOOL DumpDeviceClass(_In_ HDEVINFO Devs, _In_ PSP_DEVINFO_DATA DevInfo) |
| 115 | /*++ |
| 116 | |
| 117 | Routine Description: |
| 118 | |
| 119 | Write device class information to stdout |
| 120 | |
| 121 | Arguments: |
| 122 | |
| 123 | Devs )_ uniquely identify device |
| 124 | DevInfo ) |
| 125 | |
| 126 | Return Value: |
| 127 | |
| 128 | TRUE if success |
| 129 | |
| 130 | --*/ |
| 131 | { |
| 132 | LPTSTR cls; |
| 133 | LPTSTR guid; |
| 134 | |
| 135 | Padding(1); |
| 136 | cls = GetDeviceStringProperty(Devs,DevInfo,SPDRP_CLASS); |
| 137 | guid = GetDeviceStringProperty(Devs,DevInfo,SPDRP_CLASSGUID); |
| 138 | if(!cls && !guid) { |
| 139 | FormatToStream(stdout, |
| 140 | MSG_DUMP_NOSETUPCLASS |
| 141 | ); |
| 142 | } else { |
| 143 | FormatToStream(stdout, |
| 144 | MSG_DUMP_SETUPCLASS, |
| 145 | guid ? guid : TEXT("{}"), |
| 146 | cls ? cls : TEXT("(?)") |
| 147 | ); |
| 148 | } |
| 149 | |
| 150 | if(cls) { |
| 151 | delete [] cls; |
| 152 | } |
| 153 | if(guid) { |
| 154 | delete [] guid; |
| 155 | } |
| 156 | |
| 157 | return TRUE; |
| 158 | } |
| 159 | |
| 160 | BOOL DumpDeviceStatus(_In_ HDEVINFO Devs, _In_ PSP_DEVINFO_DATA DevInfo) |
| 161 | /*++ |
no test coverage detected