Exemple #1
0
        private static string GetClrInstallationDirectory()
        {
            int           num           = 260;
            StringBuilder stringBuilder = new StringBuilder(num);

            SerialInformation.GetCORSystemDirectory(stringBuilder, num, ref num);
            return(stringBuilder.ToString());
        }
Exemple #2
0
        public static string GetCORVersion()
        {
            int           num           = 260;
            StringBuilder stringBuilder = new StringBuilder(num);

            SerialInformation.GetCORVersion(stringBuilder, num, ref num);
            return(stringBuilder.ToString());
        }
Exemple #3
0
        public static string GetVolumeSerial(string strDriveLetter)
        {
            uint          value          = 0u;
            uint          num            = 0u;
            StringBuilder stringBuilder  = new StringBuilder(256);
            uint          num2           = 0u;
            StringBuilder stringBuilder2 = new StringBuilder(256);

            strDriveLetter += ":\\";
            SerialInformation.GetVolumeInformation(strDriveLetter, stringBuilder, (uint)stringBuilder.Capacity, ref value, ref num, ref num2, stringBuilder2, (uint)stringBuilder2.Capacity);
            return(Convert.ToString(value));
        }