private TaskbarHelper()
 {
     taskbar = (NativeMethods.ITaskbarList3) new TaskbarInstance();
     taskbar.HrInit();
 }
 private static void Init()
 {
     lock (_syncRoot) {
         try {
             if (_taskbarList == null) {
                 _taskbarList = (NativeMethods.ITaskbarList3)new NativeMethods.CTaskbarList();
                 var res = _taskbarList.HrInit();
                 if (res != NativeMethods.S_OK) { throw new Win32Exception(string.Format(CultureInfo.InvariantCulture, "Native error {0:x8}.", res)); }
             }
         } catch (NotImplementedException) {
             _taskbarList = null;
             if (DoNotThrowNotImplementedException == false) { throw; }
         }
     }
 }
 public TaskbarNotify()
 {
     this.taskBarListInst = (NativeMethods.ITaskbarList3) new TaskbarList();
     this.taskBarListInst.HrInit();
 }
 public TaskbarNotify()
 {
     this.taskBarListInst = (NativeMethods.ITaskbarList3)new TaskbarList();
     this.taskBarListInst.HrInit();
 }