Added PEAddResource and PERemoveResource
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7079 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
797e745de5
commit
978ac79a5d
17 changed files with 561 additions and 103 deletions
|
@ -149,12 +149,14 @@ typedef DWORDLONG ULONGLONG,*PULONGLONG;
|
|||
# define FIX_ENDIAN_INT32(x) (x)
|
||||
# define FIX_ENDIAN_INT16_INPLACE(x) ((void)(x))
|
||||
# define FIX_ENDIAN_INT16(x) (x)
|
||||
# define BE2HE32(x) SWAP_ENDIAN_INT32(x)
|
||||
#else
|
||||
# define FIX_ENDIAN_INT64(x) SWAP_ENDIAN_INT64(x)
|
||||
# define FIX_ENDIAN_INT32_INPLACE(x) ((x) = SWAP_ENDIAN_INT32(x))
|
||||
# define FIX_ENDIAN_INT32(x) SWAP_ENDIAN_INT32(x)
|
||||
# define FIX_ENDIAN_INT16_INPLACE(x) ((x) = SWAP_ENDIAN_INT16(x))
|
||||
# define FIX_ENDIAN_INT16(x) SWAP_ENDIAN_INT16(x)
|
||||
# define BE2HE32(x) (x)
|
||||
#endif
|
||||
#define SWAP_ENDIAN_INT64(x) ( \
|
||||
(((x)&0xFF00000000000000) >> 56) | \
|
||||
|
@ -230,7 +232,11 @@ typedef DWORDLONG ULONGLONG,*PULONGLONG;
|
|||
# define MAKEINTRESOURCEW(i) ((LPWSTR)((ULONG_PTR)((WORD)(i))))
|
||||
# endif
|
||||
# ifndef MAKEINTRESOURCE
|
||||
# define MAKEINTRESOURCE MAKEINTRESOURCEA
|
||||
# ifdef UNICODE
|
||||
# define MAKEINTRESOURCE MAKEINTRESOURCEW
|
||||
# else
|
||||
# define MAKEINTRESOURCE MAKEINTRESOURCEA
|
||||
# endif
|
||||
# endif
|
||||
# ifndef IMAGE_FIRST_SECTION
|
||||
# define IMAGE_FIRST_SECTION(h) ( PIMAGE_SECTION_HEADER( (ULONG_PTR) h + \
|
||||
|
@ -520,6 +526,10 @@ typedef DWORDLONG ULONGLONG,*PULONGLONG;
|
|||
|
||||
// resources
|
||||
|
||||
#ifndef RT_CURSOR
|
||||
# define RT_CURSOR MAKEINTRESOURCE(1)
|
||||
# define RT_GROUP_CURSOR MAKEINTRESOURCE(1 + 11)
|
||||
#endif
|
||||
#ifndef RT_BITMAP
|
||||
# define RT_BITMAP MAKEINTRESOURCE(2)
|
||||
#endif
|
||||
|
@ -530,7 +540,7 @@ typedef DWORDLONG ULONGLONG,*PULONGLONG;
|
|||
# define RT_DIALOG MAKEINTRESOURCE(5)
|
||||
#endif
|
||||
#ifndef RT_GROUP_ICON
|
||||
# define RT_GROUP_ICON MAKEINTRESOURCE(14)
|
||||
# define RT_GROUP_ICON MAKEINTRESOURCE(3 + 11)
|
||||
#endif
|
||||
#ifndef RT_VERSION
|
||||
# define RT_VERSION MAKEINTRESOURCE(16)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue