5#ifndef BITCOIN_QT_WINSHUTDOWNMONITOR_H
6#define BITCOIN_QT_WINSHUTDOWNMONITOR_H
14#include <QAbstractNativeEventFilter>
16class WinShutdownMonitor :
public QAbstractNativeEventFilter {
22#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
23 bool nativeEventFilter(
const QByteArray &eventType,
void *pMessage,
24 qintptr *pnResult)
override;
26 bool nativeEventFilter(
const QByteArray &eventType,
void *pMessage,
27 long *pnResult)
override;
32 static void registerShutdownBlockReason(
const QString &strReason,
33 const HWND &mainWinId);