blob: a3b0429e19f5b9e71f3035b5d692418493dbd711 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#ifdef _WIN32
#include "export.hpp"
#include <cstdint>
#include <QString>
class OTR_COMPAT_EXPORT activation_context
{
public:
explicit activation_context(const QString& module_name, int resid);
~activation_context();
explicit operator bool() const { return ok; }
private:
std::uintptr_t cookie = 0;
void* handle = (void*)-1;
bool ok = false;
};
#else
# error "tried to use win32-only activation context"
#endif
|