コード例 #1
0
        public string GetIndexedString(uint index)
        {
            string ret = null;

            lock (lockObject)
            {
                if (reference == null || reference.IsInvalid)
                {
                    return(ret);
                }

                if (!Hid.HidD_GetIndexedString(reference, index, strBuffer, strBuffer.Length))
                {
                    return(ret);
                }

                ret = strBuffer.ToString();
            }

            return(ret);
        }