Esempio n. 1
0
        public static string[] GetAliasExes()
        {
            int length = GetAliasExesLength();

            if (length > 0)
            {
                char[] buff = new char[length];
                if (WinCon.GetConsoleAliasExes(buff, length) == 0)
                {
                    throw new IOException("Unable to get alias exes", Marshal.GetLastWin32Error());
                }
                return(CharBufferToStringArray(buff, length));
            }
            return(new string[0]);
        }