コード例 #1
0
ファイル: ThemeFactory.cs プロジェクト: 15831944/Test3-1
        /// <summary>
        /// Returns a Version object that contains information about the verion
        /// of the CommonControls that the application is using
        /// </summary>
        /// <returns>A Version object that contains information about the verion
        /// of the CommonControls that the application is using</returns>
        private static Version GetComctlVersion()
        {
            DLLVERSIONINFO comctlVersion = new DLLVERSIONINFO();

            comctlVersion.cbSize = Marshal.SizeOf(typeof(DLLVERSIONINFO));

            if (NativeMethods.DllGetVersion(ref comctlVersion) == 0)
            {
                return(new Version(comctlVersion.dwMajorVersion, comctlVersion.dwMinorVersion, comctlVersion.dwBuildNumber));
            }

            return(new Version());
        }
コード例 #2
0
ファイル: ThemeFactory.cs プロジェクト: ChrisMoreton/Test3
		/// <summary>
		/// Returns a Version object that contains information about the verion 
		/// of the CommonControls that the application is using
		/// </summary>
		/// <returns>A Version object that contains information about the verion 
		/// of the CommonControls that the application is using</returns>
		private static Version GetComctlVersion()
		{
			DLLVERSIONINFO comctlVersion = new DLLVERSIONINFO();
			comctlVersion.cbSize = Marshal.SizeOf(typeof (DLLVERSIONINFO));

			if (NativeMethods.DllGetVersion(ref comctlVersion) == 0)
			{
				return new Version(comctlVersion.dwMajorVersion, comctlVersion.dwMinorVersion, comctlVersion.dwBuildNumber);
			}

			return new Version();
		}
コード例 #3
0
 internal static extern int DllGetVersion(ref DLLVERSIONINFO pdvi);
コード例 #4
0
		internal static extern int DllGetVersion(ref DLLVERSIONINFO pdvi);