< prev index next >
src/jdk.jpackage/windows/native/msiwrapper/Resources.h
Print this page
*** 39,51 ****
* }
*/
class Resource {
public:
! // name and type can be specified by string id, by integer id (RT_* constants or MAKEINTRESOURCE)
! Resource(LPCWSTR name, LPCWSTR type, HINSTANCE module = SysInfo::getCurrentModuleHandle());
! Resource(UINT id, LPCWSTR type, HINSTANCE module = SysInfo::getCurrentModuleHandle());
bool available() const;
// all this methods throw exception if the resource is not available
unsigned size() const;
--- 39,54 ----
* }
*/
class Resource {
public:
! // name and type can be specified by string id,
! // by integer id (RT_* constants or MAKEINTRESOURCE)
! Resource(LPCWSTR name, LPCWSTR type,
! HINSTANCE module = SysInfo::getCurrentModuleHandle());
! Resource(UINT id, LPCWSTR type,
! HINSTANCE module = SysInfo::getCurrentModuleHandle());
bool available() const;
// all this methods throw exception if the resource is not available
unsigned size() const;
*** 59,71 ****
// returns the resource as byte array
ByteArray binary() const;
private:
std::wstring nameStr;
! LPCWSTR namePtr; // can be integer (MAKEINTRESOURCE) value or point to nameStr.c_str()
std::wstring typeStr;
! LPCWSTR typePtr; // can be integer (MAKEINTRESOURCE) value or point to nameStr.c_str()
HINSTANCE instance;
void init(LPCWSTR name, LPCWSTR type, HINSTANCE module);
// generates error message
--- 62,74 ----
// returns the resource as byte array
ByteArray binary() const;
private:
std::wstring nameStr;
! LPCWSTR namePtr; // can be integer value or point to nameStr.c_str()
std::wstring typeStr;
! LPCWSTR typePtr; // can be integer value or point to nameStr.c_str()
HINSTANCE instance;
void init(LPCWSTR name, LPCWSTR type, HINSTANCE module);
// generates error message
< prev index next >