Exemplo n.º 1
0
 public ChromiumProcess(NtProcess process, InstallationData installationData)
 {
     _ntProcess        = process;
     _installationData = installationData;
     _category         = ProcessCategory.Unknown;
     _commandLine      = null;
 }
Exemplo n.º 2
0
        public static ChromiumProcess Create(NtProcess process)
        {
            InstallationData data = InstallationData.Create(process);

            if (data == null)
            {
                return(null);
            }
            return(new ChromiumProcess(process, data));
        }
Exemplo n.º 3
0
    public InstalledBuildViewModel(BuildExplorerViewModel root, InstallationData installationData) {
      _installationData = installationData;
      _root = root;
      _processes = new List<ChromeProcessViewModel>();
      IntPtr hicon = IntPtr.Zero;

      try {
        string iconPath = Path.Combine(_installationData.InstallationPath.Value, "chrome.exe");
        ushort index = (ushort)_installationData.IconIndex;
        hicon = Core.Win32.Shell.NativeMethods.ExtractAssociatedIcon(IntPtr.Zero, iconPath, ref index);
        using (Icon icon = Icon.FromHandle(hicon)) {
          _icon = Imaging.CreateBitmapSourceFromHIcon(
              icon.Handle,
              Int32Rect.Empty,
              BitmapSizeOptions.FromEmptyOptions());
        }
      } catch {
        _icon = null;
      }
    }
Exemplo n.º 4
0
 public ChromiumProcess(NtProcess process, InstallationData installationData) {
   _ntProcess = process;
   _installationData = installationData;
   _category = ProcessCategory.Unknown;
   _commandLine = null;
 }