| 1353 | } |
| 1354 | |
| 1355 | int HID_API_EXPORT_CALL HID_API_CALL hid_get_indexed_string(hid_device *dev, int string_index, wchar_t *string, size_t maxlen) |
| 1356 | { |
| 1357 | BOOL res; |
| 1358 | |
| 1359 | res = HidD_GetIndexedString(dev->device_handle, string_index, string, sizeof(wchar_t) * (DWORD) MIN(maxlen, MAX_STRING_WCHARS)); |
| 1360 | if (!res) { |
| 1361 | register_winapi_error(dev, L"HidD_GetIndexedString"); |
| 1362 | return -1; |
| 1363 | } |
| 1364 | |
| 1365 | register_string_error(dev, NULL); |
| 1366 | |
| 1367 | return 0; |
| 1368 | } |
| 1369 | |
| 1370 | int HID_API_EXPORT_CALL hid_winapi_get_container_id(hid_device *dev, GUID *container_id) |
| 1371 | { |
nothing calls this directly
no test coverage detected