get_product_string method

int get_product_string(
  1. Pointer<hid_device> dev,
  2. Pointer<wchar_t> string,
  3. int maxlen
)

@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.

Implementation

int get_product_string(
  ffi.Pointer<hid_device> dev,
  ffi.Pointer<wchar_t> string,
  int maxlen,
) {
  return _get_product_string(
    dev,
    string,
    maxlen,
  );
}