Ejemplo n.º 1
0
        public bool SetFeature(int rptID)
        {
            if (_Features.RptByteLen == 0)
            {
                return(false);
            }
            //if (!RwAccessible) return false;

            _Features.DataBuf[0] = (byte)rptID;

            fixed(byte *buf = _Features.DataBuf)
            {
                return(PInvoke.HidD_SetFeature(_hDevice, _Features.DataBuf, _Features.RptByteLen));
            }

            //return PInvoke.HidD_SetFeature(_hDevice, ref _Features.DataBuf[0], _Features.RptByteLen);
        }