Example #1
0
 public static int GetMajorVersion()
 {
     APIsStructs.DLLVERSIONINFO2 pdvi = new APIsStructs.DLLVERSIONINFO2();
     pdvi.info1.cbSize = Marshal.SizeOf(typeof(APIsStructs.DLLVERSIONINFO2));
     DllGetVersion(ref pdvi);
     return(pdvi.info1.dwMajorVersion);
 }
Example #2
0
 static private extern int DllGetVersion(
     ref APIsStructs.DLLVERSIONINFO2 pdvi);
Example #3
0
 static public extern int DllGetVersion(
     ref APIsStructs.DLLVERSIONINFO2 path);