Add NightShot source

This commit is contained in:
f1den committed 2026-07-31 17:03:49 +03:00
1 parent 0174ecaf32
commit dfcbacfb0c
33 files changed
+8358 -1

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include "config.hpp"
#include "settings.hpp"
#include <windows.h>
#include <string>
#include <vector>
namespace uploader {
struct Result {
bool success = false;
DWORD httpStatus = 0;
std::wstring responseUrl;
std::wstring message;
};
// Result ownership is transferred to the window through
// WM_NIGHTSHOT_UPLOAD_FINISHED in lParam.
[[nodiscard]] bool start(HWND notificationTarget, std::vector<BYTE>&& png,
const settings::AppSettings& configuration);
} // namespace uploader