1 | /* $Id: winfakepeldr.cpp,v 1.1 1999-10-23 12:34:48 sandervl Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Win32 PE loader fake image class (RSRC_LOAD)
|
---|
5 | *
|
---|
6 | * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
7 | *
|
---|
8 | *
|
---|
9 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
10 | *
|
---|
11 | * NOTE: RSRC_LOAD is a special flag to only load the resource directory
|
---|
12 | * of a PE image. Processing imports, sections etc is not done.
|
---|
13 | * Nor is it put into the linked list of dlls (if it's a dll).
|
---|
14 | * This is useful for GetVersionSize/Resource in case it wants to
|
---|
15 | * get version info of an image that is not loaded.
|
---|
16 | * So an instance of this type can't be used for anything but resource lookup!
|
---|
17 | */
|
---|
18 | #define INCL_DOSFILEMGR /* File Manager values */
|
---|
19 | #define INCL_DOSMODULEMGR
|
---|
20 | #define INCL_DOSERRORS /* DOS Error values */
|
---|
21 | #define INCL_DOSPROCESS /* DOS Process values */
|
---|
22 | #define INCL_DOSMISC /* DOS Miscellanous values */
|
---|
23 | #define INCL_WIN
|
---|
24 | #define INCL_BASE
|
---|
25 | #include <os2wrap.h> //Odin32 OS/2 api wrappers
|
---|
26 |
|
---|
27 | #include <misc.h>
|
---|
28 | #include <win32type.h>
|
---|
29 | #include <winfakepeldr.h>
|
---|
30 |
|
---|
31 | //******************************************************************************
|
---|
32 | //******************************************************************************
|
---|
33 | Win32PeLdrRsrcImg::Win32PeLdrRsrcImg(char *szFileName)
|
---|
34 | : Win32ImageBase(-1),
|
---|
35 | Win32PeLdrImage(szFileName, RSRC_LOAD)
|
---|
36 | {
|
---|
37 | }
|
---|
38 | //******************************************************************************
|
---|
39 | //******************************************************************************
|
---|
40 | Win32PeLdrRsrcImg::~Win32PeLdrRsrcImg()
|
---|
41 | {
|
---|
42 | }
|
---|
43 | //******************************************************************************
|
---|
44 | //******************************************************************************
|
---|
45 | BOOL Win32PeLdrRsrcImg::isDll()
|
---|
46 | {
|
---|
47 | return FALSE;
|
---|
48 | }
|
---|
49 | //******************************************************************************
|
---|
50 | //******************************************************************************
|
---|