Some fixes for capturing those nasty Apps, code is not finished yet!

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2267 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-11-11 19:57:55 +00:00
commit f006718d2a
5 changed files with 228 additions and 51 deletions

View file

@ -19,22 +19,24 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Runtime.InteropServices;
using Greenshot.Interop;
namespace GreenshotPlugin.Interop {
namespace Greenshot.Interop {
// This is used for Windows 8 to see if the App Launcher is active
// See http://msdn.microsoft.com/en-us/library/windows/desktop/jj554119%28v=vs.85%29.aspx
[ComProgId("7E5FE3D9-985F-4908-91F9-EE19F9FD1514")]
public interface IAppVisibility : Common {
//MONITOR_APP_VISIBILITY GetAppVisibilityOnMonitor(IntPtr hMonitor);
[ComProgId("clsid:7E5FE3D9-985F-4908-91F9-EE19F9FD1514")]
[ComImport, Guid("2246EA2D-CAEA-4444-A3C4-6DE827E44313"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IAppVisibility {
MONITOR_APP_VISIBILITY GetAppVisibilityOnMonitor(IntPtr hMonitor);
bool IsLauncherVisible {
get;
}
}
//public enum MONITOR_APP_VISIBILITY {
// MAV_UNKNOWN = 0, // The mode for the monitor is unknown
// MAV_NO_APP_VISIBLE = 1,
// MAV_APP_VISIBLE = 2
//}
public enum MONITOR_APP_VISIBILITY {
MAV_UNKNOWN = 0, // The mode for the monitor is unknown
MAV_NO_APP_VISIBLE = 1,
MAV_APP_VISIBLE = 2
}
}