コード例 #1
0
        static AutorunViewer()
        {
            string temp = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);

            if (temp.EndsWith("(x86)"))
            {
                rightProgramFiles = temp.Substring(0, temp.Length - 6);
            }
            else
            {
                rightProgramFiles = temp;
            }

            rightWinDir       = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
            rightSystemRoot   = Environment.GetFolderPath(Environment.SpecialFolder.Windows) + "\\";
            rightLocalAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

            emptyOptions = System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions();
        }
コード例 #2
0
 public static System.Windows.Media.Imaging.BitmapSource CreateBitmapSourceFromHIcon(IntPtr icon, System.Windows.Int32Rect sourceRect, System.Windows.Media.Imaging.BitmapSizeOptions sizeOptions)
 {
     return(default(System.Windows.Media.Imaging.BitmapSource));
 }