title: Link error with RegisterDeviceNotification only in Qt 5.5
body: <p>I upgraded to Qt 5.5 and <code>RegisterDeviceNotification</code>call started to generate a link error and project doesn't built. It still builds with Qt 5.4 and I am using VS2010 compiler in both cases.</p>
  
  <pre><code>bool MainWindow::nativeEvent(const QByteArray &amp;eventType, void *message, long *result)
  {
      MSG * msg = static_cast&lt; MSG * &gt; (message);
      int msgType = msg-&gt;message;
      if(msgType == WM_PAINT)
      {
          if(!msgp)   //Only the first WM_PAINT
          {
              GUID InterfaceClassGuid = HID_CLASSGUID;
              DEV_BROADCAST_DEVICEINTERFACE NotificationFilter;
              ZeroMemory( &amp;NotificationFilter, sizeof(NotificationFilter) );
              NotificationFilter.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE);
              NotificationFilter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
              NotificationFilter.dbcc_classguid = InterfaceClassGuid;
              HWND hw = (HWND) this-&gt;effectiveWinId();   //Main window handle
              HDEVNOTIFY hDevNotify = RegisterDeviceNotification(hw,&amp;NotificationFilter, DEVICE_NOTIFY_ALL_INTERFACE_CLASSES ); //DEVICE_NOTIFY_WINDOW_HANDLE);
              msgp = true;
          }
      }
      // i have more code here but the link error occurs in the above
  }
  </code></pre>
  
  <p>I did include <code>&lt;windows.h&gt;</code> and <code>&lt;WinUser.h&gt;</code> but that didn't fix the link error.</p>
  
  <p>The link error is:</p>
  
  <pre><code>mainwindow.obj:-1: error: LNK2019: unresolved external symbol __imp__RegisterDeviceNotificationW@12 referenced in function "private: virtual bool __thiscall MainWindow::nativeEvent(class QByteArray const &amp;,void *,long *)" (?nativeEvent@MainWindow@@EAE_NABVQByteArray@@PAXPAJ@Z)
  </code></pre>
  
  <p>I tried to include modules in .pro files from <a href="http://doc.qt.io/qt-5.5/qmake-variable-reference.html#qt" rel="nofollow">here</a> but none has made any difference.</p>