mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
[AlwaysOnTop] Proof of concept (#14360)
Co-authored-by: Niels Laute <niels.laute@live.nl>
This commit is contained in:
14
src/modules/alwaysontop/AlwaysOnTop/WinHookEventIDs.cpp
Normal file
14
src/modules/alwaysontop/AlwaysOnTop/WinHookEventIDs.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include "WinHookEventIDs.h"
|
||||
|
||||
UINT WM_PRIV_SETTINGS_CHANGED;
|
||||
|
||||
std::once_flag init_flag;
|
||||
|
||||
void InitializeWinhookEventIds()
|
||||
{
|
||||
std::call_once(init_flag, [&] {
|
||||
WM_PRIV_SETTINGS_CHANGED = RegisterWindowMessage(L"{11978F7B-221A-4E65-B8A8-693F7D6E4B25}");
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user