source: trunk/src/kernel32/winimagelx.cpp@ 1570

Last change on this file since 1570 was 1131, checked in by sandervl, 26 years ago

version fixes, resource lookup change + lstrcmpniW added

File size: 2.1 KB
Line 
1/* $Id: winimagelx.cpp,v 1.3 1999-10-04 20:52:33 sandervl Exp $ */
2
3/*
4 * Win32 LX Image base class
5 *
6 * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
7 *
8 * Project Odin Software License can be found in LICENSE.TXT
9 *
10 */
11
12#define INCL_DOSFILEMGR /* File Manager values */
13#define INCL_DOSMODULEMGR
14#define INCL_DOSERRORS /* DOS Error values */
15#define INCL_DOSPROCESS /* DOS Process values */
16#define INCL_DOSMISC /* DOS Miscellanous values */
17#define INCL_WIN
18#define INCL_BASE
19#include <os2wrap.h> //Odin32 OS/2 api wrappers
20
21#include <stdio.h>
22#include <string.h>
23#include <stdlib.h>
24
25#include <assert.h>
26#include <misc.h>
27#include <win32type.h>
28#include <winimagebase.h>
29#include <winimagelx.h>
30#include <windllbase.h>
31#include <winexebase.h>
32#include <winexelx.h>
33#include <pefile.h>
34#include <unicode.h>
35#include <winres.h>
36#include "oslibmisc.h"
37#include "initterm.h"
38#include <win\virtual.h>
39
40//******************************************************************************
41//******************************************************************************
42Win32LxImage::Win32LxImage(HINSTANCE hInstance, PVOID pResData)
43 : Win32ImageBase(hInstance)
44{
45 APIRET rc;
46
47 szFileName[0] = 0;
48
49 char *name = OSLibGetDllName(hinstance);
50 strcpy(szFileName, name);
51 strupr(szFileName);
52
53 setFullPath(szFileName);
54
55 //Pointer to PE resource tree generates by wrc (or NULL for system dlls)
56 pResDir = (PIMAGE_RESOURCE_DIRECTORY)pResData;
57
58 //pResourceSectionStart contains the virtual address of the imagebase in the PE header
59 //for the resource section (images loaded by the pe.exe)
60 //For LX images, this is 0 as OffsetToData contains a relative offset
61 pResourceSectionStart = 0;
62}
63//******************************************************************************
64//******************************************************************************
65Win32LxImage::~Win32LxImage()
66{
67}
68//******************************************************************************
69//******************************************************************************
70
Note: See TracBrowser for help on using the repository browser.