示例#1
0
        /// <summary>
        /// Retrieves the system pathname of the receiver.
        /// </summary>
        /// <returns>Returns path name.</returns>
        public string SystemPath()
        {
            var ptr = G313Api.GetPath2(GetHandle());

            if (ptr.ToInt32() == 0)
            {
                throw new OperationFailedException("failed to retrieve system path", this);
            }

            var path = Marshal.PtrToStringAuto(ptr);

            return(path);
        }