Elaztek Developer Hub
Blamite Game Engine - Strings  00307.01.26.21.0804.blamite
A library containing general purpose utilities and classes for use in multiple projects.
res.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Windows.h>
4 #include <string>
5 
6 #ifdef STRINGS_EXPORTS
7 #define STRINGS_API __declspec(dllexport)
8 #else
9 #define STRINGS_API __declspec(dllimport)
10 #endif
11 
16 {
17  int id;
19  DWORD size;
20 };
21 
22 namespace BlamStrings
23 {
24  namespace Utils
25  {
29  namespace Res
30  {
39  STRINGS_API std::string GetTextResource(HMODULE module_handle, int res_id, const char* res_type);
40 
48  STRINGS_API std::string GetHTMLResource(HMODULE module_handle, int res_id);
49 
60  STRINGS_API HRESULT GetResource(HMODULE module_handle, int res_id, const char* res_type, BlamWin32ResourceData* res);
61  }
62  }
63 }
BlamStrings
Namespace for Blamite's shared C++ library.
Definition: hooks.h:22
BlamWin32ResourceData::size
DWORD size
Size of the resource data.
Definition: res.h:19
BlamStrings::Utils::Res::GetTextResource
STRINGS_API std::string GetTextResource(HMODULE module_handle, int res_id, const char *res_type)
Retrieves the specified resource as a text resource.
Definition: res.cpp:5
BlamWin32ResourceData
Structure to bundle together resource data.
Definition: res.h:15
BlamStrings::Utils::Res::GetHTMLResource
STRINGS_API std::string GetHTMLResource(HMODULE module_handle, int res_id)
Retrieves the specified resource as an HTML resource.
Definition: res.cpp:42
BlamWin32ResourceData::id
int id
The ID of the resource.
Definition: res.h:17
BlamStrings::Utils::Res::GetResource
STRINGS_API HRESULT GetResource(HMODULE module_handle, int res_id, const char *res_type, BlamWin32ResourceData *res)
Retrieves the specified resource as a Resource structure, containing access to the raw binary data.
Definition: res.cpp:79
BlamWin32ResourceData::resource_pointer
void * resource_pointer
Address of the resource data.
Definition: res.h:18
STRINGS_API
#define STRINGS_API
Definition: res.h:9