internal static int GetMajorVersion() { APIsStructs.DLLVERSIONINFO2 pdvi = new APIsStructs.DLLVERSIONINFO2(); pdvi.info1.cbSize = Marshal.SizeOf(typeof(APIsStructs.DLLVERSIONINFO2)); DllGetVersion(ref pdvi); return(pdvi.info1.dwMajorVersion); }
internal static int GetMajorVersion() { APIsStructs.DLLVERSIONINFO2 pdvi = new APIsStructs.DLLVERSIONINFO2(); pdvi.info1.cbSize = Marshal.SizeOf(typeof (APIsStructs.DLLVERSIONINFO2)); DllGetVersion(ref pdvi); return pdvi.info1.dwMajorVersion; }
private static extern int DllGetVersion( ref APIsStructs.DLLVERSIONINFO2 pdvi);