#include "precomp.h"
#include "newexe.h"
Go to the source code of this file.
Defines | |
#define | ARRAYSIZE(a) (sizeof(a)/sizeof(a[0])) |
#define | ICON_MAGIC 0 |
#define | ICO_MAGIC1 1 |
#define | CUR_MAGIC1 2 |
#define | BMP_MAGIC ((WORD)'B'+((WORD)'M'<<8)) |
#define | ANI_MAGIC ((WORD)'R'+((WORD)'I'<<8)) |
#define | ANI_MAGIC1 ((WORD)'F'+((WORD)'F'<<8)) |
#define | ANI_MAGIC4 ((WORD)'A'+((WORD)'C'<<8)) |
#define | ANI_MAGIC5 ((WORD)'O'+((WORD)'N'<<8)) |
#define | MZMAGIC ((WORD)'M'+((WORD)'Z'<<8)) |
#define | PEMAGIC ((WORD)'P'+((WORD)'E'<<8)) |
#define | LEMAGIC ((WORD)'L'+((WORD)'E'<<8)) |
#define | RESOURCE_VA(x) ((x)->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_RESOURCE].VirtualAddress) |
#define | RESOURCE_SIZE(x) ((x)->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_RESOURCE].Size) |
#define | NUMBER_OF_SECTIONS(x) ((x)->FileHeader.NumberOfSections) |
#define | FCC(c0, c1, c2, c3) ((DWORD)(c0)|((DWORD)(c1)<<8)|((DWORD)(c2)<<16)|((DWORD)(c3)<<24)) |
#define | COM_FILE FCC('.', 'c', 'o', 'm') |
#define | BAT_FILE FCC('.', 'b', 'a', 't') |
#define | CMD_FILE FCC('.', 'c', 'm', 'd') |
#define | PIF_FILE FCC('.', 'p', 'i', 'f') |
#define | LNK_FILE FCC('.', 'l', 'n', 'k') |
#define | ICO_FILE FCC('.', 'i', 'c', 'o') |
#define | EXE_FILE FCC('.', 'e', 'x', 'e') |
#define | WIN32VER30 0x00030000 |
#define | GET_COUNT 424242 |
#define | ROP_DSna 0x00220326 |
Typedefs | |
typedef new_exe NEWEXE * | LPNEWEXE |
typedef exe_hdr EXEHDR * | LPEXEHDR |
typedef rsrc_nameinfo RESNAMEINFO * | LPRESNAMEINFO |
typedef rsrc_typeinfo RESTYPEINFO * | LPRESTYPEINFO |
typedef rsrc_typeinfo UNALIGNED * | ULPRESTYPEINFO |
typedef new_rsrc RESTABLE * | LPRESTABLE |
Functions | |
__inline BOOL | PathIsUNC (LPWSTR psz) |
BOOL | ReadAByte (LPCVOID pMem) |
LPVOID | RVAtoP (LPVOID pBase, DWORD rva) |
LPVOID | GetResourceTablePE (LPVOID pBase) |
LPVOID | FindResourcePE (LPVOID pBase, LPVOID prt, int iResIndex, int ResType, DWORD *pcb) |
LPVOID | GetResourceTableNE (LPVOID pBase) |
LPVOID | FindResourceNE (LPVOID lpBase, LPVOID prt, int iResIndex, int iResType, DWORD *pcb) |
UINT | ExtractIconFromICO (LPTSTR szFile, int nIconIndex, int cxIcon, int cyIcon, HICON *phicon, UINT flags) |
UINT | ExtractIconFromBMP (LPTSTR szFile, int nIconIndex, int cxIcon, int cyIcon, HICON *phicon, UINT flags) |
UINT | ExtractIconFromEXE (HANDLE hFile, int nIconIndex, int cxIconSize, int cyIconSize, HICON *phicon, UINT *piconid, UINT nIcons, UINT flags) |
LPWSTR | PathFindExtension (LPWSTR pszPath) |
WINUSERAPI UINT | PrivateExtractIconExA (LPCSTR szFileName, int nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons) |
DWORD | HasExtension (LPWSTR pszPath) |
WINUSERAPI UINT WINAPI | PrivateExtractIconsW (LPCWSTR szFileName, int nIconIndex, int cxIcon, int cyIcon, HICON *phicon, UINT *piconid, UINT nIcons, UINT flags) |
WINUSERAPI UINT WINAPI | PrivateExtractIconsA (LPCSTR szFileName, int nIconIndex, int cxIcon, int cyIcon, HICON *phicon, UINT *piconid, UINT nIcons, UINT flags) |
WINUSERAPI UINT | PrivateExtractIconExW (LPCWSTR szFileName, int nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons) |
|
Definition at line 25 of file extract.c. Referenced by PrivateExtractIconsW(). |
|
Definition at line 26 of file extract.c. Referenced by PrivateExtractIconsW(). |
|
Definition at line 27 of file extract.c. Referenced by PrivateExtractIconsW(). |
|
Definition at line 28 of file extract.c. Referenced by PrivateExtractIconsW(). |
|
Definition at line 19 of file extract.c. Referenced by PrivateExtractIconsW(). |
|
Definition at line 47 of file extract.c. Referenced by HasExtension(), and PrivateExtractIconsW(). |
|
Definition at line 24 of file extract.c. Referenced by PrivateExtractIconsW(). |
|
Definition at line 48 of file extract.c. Referenced by HasExtension(), and PrivateExtractIconsW(). |
|
Definition at line 46 of file extract.c. Referenced by HasExtension(), and PrivateExtractIconsW(). |
|
Definition at line 23 of file extract.c. Referenced by PrivateExtractIconsW(). |
|
Definition at line 52 of file extract.c. Referenced by HasExtension(). |
|
|
|
Definition at line 57 of file extract.c. Referenced by ExtractIconFromEXE(), FindResourceNE(), and FindResourcePE(). |
|
Definition at line 51 of file extract.c. Referenced by HasExtension(). |
|
Definition at line 22 of file extract.c. Referenced by PrivateExtractIconsW(). |
|
Definition at line 21 of file extract.c. Referenced by PrivateExtractIconsW(). |
|
|
|
Definition at line 50 of file extract.c. Referenced by HasExtension(), and PrivateExtractIconsW(). |
|
Definition at line 29 of file extract.c. Referenced by ExtractIconFromEXE(), GetResourceTableNE(), GetResourceTablePE(), and PrivateExtractIconsW(). |
|
Definition at line 42 of file extract.c. Referenced by RVAtoP(). |
|
Definition at line 30 of file extract.c. Referenced by ExtractIconFromEXE(). |
|
Definition at line 49 of file extract.c. Referenced by HasExtension(), and PrivateExtractIconsW(). |
|
|
|
Definition at line 40 of file extract.c. Referenced by GetResourceTablePE(). |
|
Definition at line 424 of file extract.c. Referenced by ExtractIconFromBMP(). |
|
Definition at line 55 of file extract.c. Referenced by ExtractIconFromEXE(). |
|
Definition at line 34 of file extract.c. Referenced by GetResourceTableNE(), GetResourceTablePE(), and RVAtoP(). |
|
Definition at line 33 of file extract.c. Referenced by GetResourceTableNE(). |
|
Definition at line 35 of file extract.c. Referenced by FindResourceNE(). |
|
Definition at line 38 of file extract.c. Referenced by FindResourceNE(). |
|
|
|
Definition at line 37 of file extract.c. Referenced by FindResourceNE(). |
|
Definition at line 426 of file extract.c. References CreateIconIndirect(), NULL, ROP_DSna, szFile, TRUE, and UINT. Referenced by PrivateExtractIconsW().
|
|
Definition at line 517 of file extract.c. References BYTE, CreateIconFromResourceEx(), DWORD, exit, FALSE, FindResourceNE(), FindResourcePE(), GET_COUNT, GetResourceTableNE(), GetResourceTablePE(), INVALID_HANDLE_VALUE, LookupIconIdFromDirectoryEx(), LPVOID, MZMAGIC, NULL, PEMAGIC, ReadAByte(), TRUE, UINT, UPBITMAPINFOHEADER, and WIN32VER30. Referenced by PrivateExtractIconsW().
|
|
Definition at line 368 of file extract.c. References DestroyCursor(), NULL, szFile, and UINT. Referenced by PrivateExtractIconsW().
|
|
Definition at line 310 of file extract.c. References DWORD, GET_COUNT, LPRESNAMEINFO, LPRESTABLE, LPVOID, NULL, and ULPRESTYPEINFO. Referenced by ExtractIconFromEXE().
|
|
Definition at line 165 of file extract.c. References DWORD, GET_COUNT, LPVOID, and RVAtoP(). Referenced by ExtractIconFromEXE().
|
|
Definition at line 266 of file extract.c. References LPEXEHDR, LPNEWEXE, LPVOID, and MZMAGIC. Referenced by ExtractIconFromEXE().
|
|
Definition at line 133 of file extract.c. References BYTE, LPEXEHDR, LPVOID, MZMAGIC, RESOURCE_VA, and RVAtoP(). Referenced by ExtractIconFromEXE().
|
|
Definition at line 765 of file extract.c. References BAT_FILE, CMD_FILE, COM_FILE, DWORD, EXE_FILE, ICO_FILE, L, LNK_FILE, PathFindExtension(), and PIF_FILE. Referenced by PrivateExtractIconsW().
|
|
Definition at line 702 of file extract.c. Referenced by HasExtension().
|
|
Definition at line 68 of file extract.c. Referenced by PrivateExtractIconsW().
|
|
Definition at line 735 of file extract.c. References PrivateExtractIconExW(), TRUE, UINT, and UserLocalFree.
|
|
Definition at line 1072 of file extract.c. References GetSystemMetrics(), NULL, PrivateExtractIconsW(), and UINT. Referenced by LoadLinkInfo(), and PrivateExtractIconExA().
|
|
Definition at line 1019 of file extract.c. References PrivateExtractIconsW(), TRUE, UINT, and UserLocalFree.
|
|
Definition at line 830 of file extract.c. References ANI_MAGIC, ANI_MAGIC1, ANI_MAGIC4, ANI_MAGIC5, ARRAYSIZE, BAT_FILE, BMP_MAGIC, CMD_FILE, COM_FILE, CUR_MAGIC1, DWORD, exit, ExtractIconFromBMP(), ExtractIconFromEXE(), ExtractIconFromICO(), HasExtension(), ICO_MAGIC1, ICON_MAGIC, INVALID_HANDLE_VALUE, LNK_FILE, MAX_PATH, MZMAGIC, NULL, OPEN_EXISTING, PathIsUNC(), PIF_FILE, and UINT. Referenced by PrivateExtractIconExW(), and PrivateExtractIconsA().
|
|
Definition at line 82 of file extract.c. Referenced by ExtractIconFromEXE().
|
|
Definition at line 94 of file extract.c. References BYTE, DWORD, LPEXEHDR, LPVOID, NULL, and NUMBER_OF_SECTIONS. Referenced by FindResourcePE(), and GetResourceTablePE().
|