MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / hid_get_indexed_string

Function hid_get_indexed_string

lib/hidapi/windows/hid.c:1355–1368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1353}
1354
1355int 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
1370int HID_API_EXPORT_CALL hid_winapi_get_container_id(hid_device *dev, GUID *container_id)
1371{

Callers

nothing calls this directly

Calls 2

register_winapi_errorFunction · 0.85
register_string_errorFunction · 0.85

Tested by

no test coverage detected