Esempio n. 1
0
 private static Icon getWarningIcon()
 {
     if (OperatingSystemVersions.IsSupported(OperatingSystemVersion.WindowsVista))
     {
         return(ExtractIcon(@"%SystemRoot%\System32\imageres.dll", -84));
     }
     else
     {
         return(ExtractIcon(@"%SystemRoot%\System32\user32.dll", -101));
     }
 }
Esempio n. 2
0
 private static Icon getApplicationIcon()
 {
     if (OperatingSystemVersions.IsSupported(OperatingSystemVersion.WindowsVista))
     {
         return(ExtractIcon(@"%SystemRoot%\System32\imageres.dll", -15));
     }
     else
     {
         return(ExtractIcon(@"%SystemRoot%\System32\shell32.dll", -3));
     }
 }