hid_get_product_string method
@brief Get The Product String from a HID device.
@ingroup API @param dev A device handle returned from hid_open(). @param string A wide string buffer to put the data into. @param maxlen The length of the buffer in multiples of wchar_t.
@returns This function returns 0 on success and -1 on error. Call hid_error(dev) to get the failure reason.
Implementation
int hid_get_product_string(
ffi.Pointer<hid_device> dev,
ffi.Pointer<ffi.WChar> string,
int maxlen,
) {
return _hid_get_product_string(
dev,
string,
maxlen,
);
}