예제 #1
0
        public bool FlushQueue()
        {
            lock (lockObject)
            {
                if (reference == null)
                {
                    throw new InvalidOperationException("The HID reference is null.");
                }
                else if (reference.IsInvalid)
                {
                    throw new InvalidOperationException("The HID reference is invalid");
                }

                return(Hid.HidD_FlushQueue(reference));
            }
        }