Ocean
Ocean::Platform::Win::Resource Class Reference

This class implements function allowing to operate with resource data. More...

Public Types

typedef std::vector< unsigned char > Buffer
 Definition of a vector holding 8 bit values. More...
 

Static Public Member Functions

static bool extractResource (const HMODULE module, const unsigned int resourceId, const std::wstring &type, Buffer &buffer)
 Extracts the specific resource information frosm a given module specified by the id and type of the resource. More...
 

Detailed Description

This class implements function allowing to operate with resource data.

Member Typedef Documentation

◆ Buffer

typedef std::vector<unsigned char> Ocean::Platform::Win::Resource::Buffer

Definition of a vector holding 8 bit values.

Member Function Documentation

◆ extractResource()

static bool Ocean::Platform::Win::Resource::extractResource ( const HMODULE  module,
const unsigned int  resourceId,
const std::wstring &  type,
Buffer buffer 
)
static

Extracts the specific resource information frosm a given module specified by the id and type of the resource.

Parameters
moduleThe handle of the module from which the resource is requested, nullptr to extract the resource from the module which created the current process
resourceIdThe id of the resource
typeThe type of the resource
bufferThe resulting resource information
Returns
True, if succeeded

The documentation for this class was generated from the following file: