コード例 #1
0
    public static int smethod_9(out string[] string_0)
    {
        IntPtr intPtr = Marshal.AllocCoTaskMem(32767);
        int    privateProfileSectionNames = IniFileUtils.GetPrivateProfileSectionNames(intPtr, 32767, IniFileUtils.iniPath);

        if (privateProfileSectionNames == 0)
        {
            string_0 = null;
            return(-1);
        }
        string text = Marshal.PtrToStringAnsi(intPtr, privateProfileSectionNames).ToString();

        Marshal.FreeCoTaskMem(intPtr);
        string text2 = text.Substring(0, text.Length - 1);

        char[] separator = new char[1];
        string_0 = text2.Split(separator);
        return(0);
    }