Ejemplo n.º 1
0
		/// <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 (Win32API.DllGetVersion(ref comctlVersion) == 0)
			{
				return new Version(comctlVersion.dwMajorVersion, comctlVersion.dwMinorVersion, comctlVersion.dwBuildNumber);
			}

			return new Version();
		}
Ejemplo n.º 2
0
 internal static extern int DllGetVersion(ref DLLVERSIONINFO pdvi);
Ejemplo n.º 3
0
 internal static extern int DllGetVersion(ref DLLVERSIONINFO pdvi);
Ejemplo n.º 4
0
 public extern static int GetCommonControlDLLVersion(ref DLLVERSIONINFO dvi);
Ejemplo n.º 5
0
 public extern static int GetCommonControlDLLVersion(ref DLLVERSIONINFO dvi);