Changeset View
Changeset View
Standalone View
Standalone View
src/qt/winshutdownmonitor.cpp
// Copyright (c) 2014-2016 The Bitcoin Core developers | // Copyright (c) 2014-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "winshutdownmonitor.h" | #include "winshutdownmonitor.h" | ||||
#if defined(Q_OS_WIN) && QT_VERSION >= 0x050000 | #if defined(Q_OS_WIN) && QT_VERSION >= 0x050000 | ||||
#include "init.h" | #include "init.h" | ||||
#include "util.h" | #include "util.h" | ||||
#include <openssl/rand.h> | |||||
#include <windows.h> | #include <windows.h> | ||||
#include <QDebug> | #include <QDebug> | ||||
// If we don't want a message to be processed by Qt, return true and set result | // If we don't want a message to be processed by Qt, return true and set result | ||||
// to the value that the window procedure should return. Otherwise return false. | // to the value that the window procedure should return. Otherwise return false. | ||||
bool WinShutdownMonitor::nativeEventFilter(const QByteArray &eventType, | bool WinShutdownMonitor::nativeEventFilter(const QByteArray &eventType, | ||||
void *pMessage, long *pnResult) { | void *pMessage, long *pnResult) { | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |