Exemplo n.º 1
0
        public bool HasTitleBar()
        {
            IntPtr processPtr = GetProcessPtr();

            if (processPtr == IntPtr.Zero)
            {
                return(false);
            }

            return(ScreenShots.HasTitlebar(processPtr));
        }
Exemplo n.º 2
0
 private void CheckBoxScreenShotOnCheckedChanged(object sender, EventArgs e)
 {
     _screenshot = _slot.checkBoxScreenShot.Checked;
     _backupManager.Screenshot = _screenshot;
     SetAutoBackupMessage();
     if (_screenshot)
     {
         var doomPtr = BackupManager.GetDoomPtr();
         if (!ScreenShots.HasTitlebar(doomPtr))
         {
             Message("Screenshot only works if Doom is set to Windowed Mode", "Warning!", MessageType.Error,
                     MessageMode.User);
         }
     }
 }