Add NightShot source
This commit is contained in:
1 parent
0174ecaf32
commit
dfcbacfb0c
33 files changed
+8358
-1
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user