Example #1
0
        public static int GetMajorVersion()
        {
            DLLVERSIONINFO2 pdvi = new DLLVERSIONINFO2();

            pdvi.info1.cbSize = Marshal.SizeOf(typeof(DLLVERSIONINFO2));
            DllGetVersion(ref pdvi);
            return(pdvi.info1.dwMajorVersion);
        }
Example #2
0
 static private extern int DllGetVersion(ref DLLVERSIONINFO2 pdvi);