This commit is contained in:
Philipp Sumi
2013-11-16 17:50:03 +00:00
parent b6a4590114
commit 70b696aaff
2 changed files with 6 additions and 2 deletions

View File

@@ -26,6 +26,7 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Hardcodet.Wpf.TaskbarNotification.Interop
{
@@ -190,7 +191,11 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop
if (MessageWindowHandle == IntPtr.Zero)
{
#if SILVERLIGHT
throw new Exception("Message window handle was not a valid pointer.");
#else
throw new Win32Exception();
#endif
}
}