mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
[OOBE] Out of box experience window (#9973)
This commit is contained in:
20
src/modules/shortcut_guide/native_event_waiter.h
Normal file
20
src/modules/shortcut_guide/native_event_waiter.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include "pch.h"
|
||||
#include "common/interop/shared_constants.h"
|
||||
|
||||
class NativeEventWaiter
|
||||
{
|
||||
static const int timeout = 1000;
|
||||
|
||||
HANDLE event_handle;
|
||||
std::function<void()> action;
|
||||
std::atomic<bool> aborting;
|
||||
|
||||
void run();
|
||||
std::thread running_thread;
|
||||
|
||||
public:
|
||||
|
||||
NativeEventWaiter(const std::wstring& event_name, std::function<void()> action);
|
||||
~NativeEventWaiter();
|
||||
};
|
||||
Reference in New Issue
Block a user