Changeset 921 for trunk/src/kernel32/winres.cpp
- Timestamp:
- Sep 13, 1999, 4:31:06 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winres.cpp
r816 r921 1 /* $Id: winres.cpp,v 1.1 5 1999-09-04 12:41:46 sandervl Exp $ */1 /* $Id: winres.cpp,v 1.16 1999-09-13 14:31:06 sandervl Exp $ */ 2 2 3 3 /* … … 28 28 #include <winres.h> 29 29 #include <misc.h> 30 #include < nameid.h>31 #include <win exe.h>30 #include <winexepe2lx.h> 31 #include <windllpe2lx.h> 32 32 #include "cvtresource.h" 33 33 #include <vmutex.h> 34 34 35 35 VMutex resmutex; 36 37 char *ResTypes[MAX_RES] = 38 {"niks", "CURSOR", "BITMAP", "ICON", "MENU", "DIALOG", "STRING", 39 "FONTDIR", "FONT", "ACCELERATOR", "RCDATA", "MESSAGETABLE", 40 "GROUP_CURSOR", "niks", "GROUP_ICON", "niks", "VERSION"}; 36 41 37 42 //****************************************************************************** … … 92 97 os2resdata(NULL), winresdata(NULL), resType(RSRC_CUSTOMNODATA) 93 98 { 94 resmutex.enter(); 95 next = module->winres; 96 module->winres = this; 97 resmutex.leave(); 98 99 next = NULL; 99 100 module = NULL; 101 100 102 id = -1; 101 103 type = -1; … … 109 111 //****************************************************************************** 110 112 //****************************************************************************** 111 Win32Resource::Win32Resource(Win32Image *module, HRSRC hRes, ULONG id, ULONG type) :113 Win32Resource::Win32Resource(Win32ImageBase *module, HRSRC hRes, ULONG id, ULONG type) : 112 114 os2resdata(NULL), winresdata(NULL), resType(RSRC_PE2LX) 113 115 { … … 168 170 //****************************************************************************** 169 171 //****************************************************************************** 170 Win32Resource::Win32Resource(Win32Image *module, ULONG id, ULONG type,172 Win32Resource::Win32Resource(Win32ImageBase *module, ULONG id, ULONG type, 171 173 ULONG size, char *resdata) : hres(NULL), 172 174 os2resdata(NULL), winresdata(NULL), resType(RSRC_PELOADER) … … 246 248 case NTRT_MENU: 247 249 case NTRT_DIALOG: 248 newid = module->getWin32ResourceId(id); 250 { 251 // newid = ((Win32Pe2LxImage *)module)->getWin32ResourceId(id); 249 252 250 253 rc = DosGetResource((HMODULE)module->hinstance, RT_RCDATA, (int)newid, (PPVOID)&resdata); … … 256 259 memcpy(winresdata, resdata, ressize); 257 260 break; 261 } 258 262 259 263 //TODO:not yet implemented … … 470 474 //****************************************************************************** 471 475 //****************************************************************************** 472 void Win32Resource::destroyAll(Win32Image *module)476 void Win32Resource::destroyAll(Win32ImageBase *module) 473 477 { 474 478 Win32Resource *res = module->winres, *next;
Note:
See TracChangeset
for help on using the changeset viewer.