예제 #1
0
 public bool _IsAppThemed()
 {
     try
     {
         DLLVERSIONINFO version = new DLLVERSIONINFO();
         version.cbSize = Marshal.SizeOf(typeof(DLLVERSIONINFO));
         int ret = DllGetVersion(ref version);
         if (version.dwMajorVersion >= 6)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (Exception)
     {
         return(false);
     }
 }
예제 #2
0
 private static extern int DllGetVersion(ref DLLVERSIONINFO s);