2019-11-23 18:17:44 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "linux/windows/wincompat.h"
|
|
|
|
#include "linux/windows/handles.h"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
struct HRSRC : public CHANDLE
|
|
|
|
{
|
|
|
|
std::vector<char> data;
|
|
|
|
HRSRC(const void * = NULL)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
operator const void * () const
|
|
|
|
{
|
|
|
|
return data.data();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-02-22 19:00:42 +00:00
|
|
|
const char * MAKEINTRESOURCE(int x);
|
2019-11-23 18:17:44 +00:00
|
|
|
HRSRC FindResource(void *, const std::string & filename, const char *);
|
|
|
|
DWORD SizeofResource(void *, const HRSRC &);
|
|
|
|
HGLOBAL LoadResource(void *, HRSRC &);
|
|
|
|
BYTE * LockResource(HGLOBAL);
|