15 lines
502 B
C++
15 lines
502 B
C++
#pragma once
|
|
#include "config.hpp"
|
|
#include <windows.h>
|
|
#include <vector>
|
|
|
|
namespace clipboard_history {
|
|
|
|
// Publishes an encoded bitmap stream through Windows.ApplicationModel.DataTransfer
|
|
// so Windows 10/11 clipboard history can ingest it. This intentionally happens
|
|
// before the richer Win32 clipboard payload is installed.
|
|
[[nodiscard]] bool publishBitmap(const std::vector<BYTE>& encodedBitmap,
|
|
DWORD settleMilliseconds = 450);
|
|
|
|
} // namespace clipboard_history
|