Changeset 6482 for trunk/src/kernel32
- Timestamp:
- Aug 7, 2001, 11:34:16 PM (24 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/KERNEL32.DEF
r6471 r6482 1 ; $Id: KERNEL32.DEF,v 1.1 19 2001-08-06 19:36:41sandervl Exp $1 ; $Id: KERNEL32.DEF,v 1.120 2001-08-07 21:34:15 sandervl Exp $ 2 2 3 3 ;Basis is Windows95 KERNEL32 … … 1190 1190 strncmpiW @2022 NONAME 1191 1191 1192 _ConvertIconGroup@12 @2023 NONAME 1193 1192 1194 GetDisplayCodepage__Fv @3000 NONAME 1193 1195 GetWindowsCodepage__Fv @3001 NONAME -
trunk/src/kernel32/cvticongrp.cpp
r3625 r6482 1 /* $Id: cvticongrp.cpp,v 1. 7 2000-05-28 16:45:12sandervl Exp $ */1 /* $Id: cvticongrp.cpp,v 1.8 2001-08-07 21:34:16 sandervl Exp $ */ 2 2 3 3 /* … … 35 35 //****************************************************************************** 36 36 //****************************************************************************** 37 void * ConvertIconGroup(IconHeader *ihdr, int size, Win32ImageBase *module)37 void * WIN32API ConvertIconGroup(void *hdr, HINSTANCE hInstance, DWORD *ressize) 38 38 { 39 IconHeader *ihdr = (IconHeader *)hdr; 39 40 ResourceDirectory *rdir = (ResourceDirectory *)(ihdr + 1); 40 41 int i, groupsize = 0, os2iconsize; … … 53 54 dprintf2(("Bits : %d", rdir->wBitCount)); 54 55 dprintf2(("ResBytes: %d", rdir->lBytesInRes)); 55 hRes = FindResourceA( module->getInstanceHandle(),56 hRes = FindResourceA(hInstance, 56 57 (LPCSTR)rdir->wNameOrdinal, (LPSTR)NTRT_ICON); 57 58 58 groupsize += QueryConvertedResourceSize( module->getInstanceHandle(), (char *)NTRT_ICON, hRes);59 groupsize += QueryConvertedResourceSize(hInstance, (char *)NTRT_ICON, hRes); 59 60 rdir++; 60 61 } 61 bafh = (BITMAPARRAYFILEHEADER2 *)malloc(groupsize+ihdr->wCount*sizeof(BITMAPARRAYFILEHEADER2)); 62 groupsize = groupsize+ihdr->wCount*sizeof(BITMAPARRAYFILEHEADER2); 63 bafh = (BITMAPARRAYFILEHEADER2 *)malloc(groupsize); 62 64 orgbafh = bafh; 63 65 … … 68 70 bafh->cxDisplay = 0; 69 71 bafh->cyDisplay = 0; 70 hRes = FindResourceA( module->getInstanceHandle(),72 hRes = FindResourceA(hInstance, 71 73 (LPCSTR)rdir->wNameOrdinal, (LPSTR)NTRT_ICON); 72 74 … … 77 79 } 78 80 79 iconhdr = (WINBITMAPINFOHEADER *)LockResource(LoadResource( module->getInstanceHandle(), hRes));80 os2icon = ConvertIcon(iconhdr, SizeofResource( module->getInstanceHandle(), hRes), &os2iconsize, (int)bafh - (int)orgbafh + sizeof(BITMAPARRAYFILEHEADER2)-sizeof(BITMAPFILEHEADER2));81 iconhdr = (WINBITMAPINFOHEADER *)LockResource(LoadResource(hInstance, hRes)); 82 os2icon = ConvertIcon(iconhdr, SizeofResource(hInstance, hRes), &os2iconsize, (int)bafh - (int)orgbafh + sizeof(BITMAPARRAYFILEHEADER2)-sizeof(BITMAPFILEHEADER2)); 81 83 82 84 if(os2icon == NULL) { … … 98 100 rdir++; 99 101 } 102 *ressize = groupsize; 100 103 return (void *)orgbafh; 101 104 } -
trunk/src/kernel32/kernel32.mak
r6417 r6482 1 # $Id: kernel32.mak,v 1.1 1 2001-07-30 18:15:09sandervl Exp $1 # $Id: kernel32.mak,v 1.12 2001-08-07 21:34:16 sandervl Exp $ 2 2 3 3 # … … 132 132 $(OBJDIR)\hmdisk.obj \ 133 133 $(OBJDIR)\version.obj \ 134 $(OBJDIR)\cvticon.obj \ 135 $(OBJDIR)\cvticongrp.obj \ 136 $(OBJDIR)\winres.obj \ 134 137 !ifdef DEBUG 135 138 $(OBJDIR)\exceptstackdump.obj \ -
trunk/src/kernel32/kernel32lib.mak
r6438 r6482 1 # $Id: kernel32lib.mak,v 1. 3 2001-08-02 14:50:13sandervl Exp $1 # $Id: kernel32lib.mak,v 1.4 2001-08-07 21:34:16 sandervl Exp $ 2 2 3 3 # … … 119 119 $(OBJDIR)\hmdisk.obj \ 120 120 $(OBJDIR)\version.obj \ 121 $(OBJDIR)\cvticon.obj \ 122 $(OBJDIR)\cvticongrp.obj \ 123 $(OBJDIR)\winres.obj \ 121 124 !ifdef DEBUG 122 125 $(OBJDIR)\exceptstackdump.obj \ -
trunk/src/kernel32/winres.cpp
r5308 r6482 1 /* $Id: winres.cpp,v 1. 29 2001-03-13 18:45:34sandervl Exp $ */1 /* $Id: winres.cpp,v 1.30 2001-08-07 21:34:16 sandervl Exp $ */ 2 2 3 3 /* … … 35 35 #include "dbglocal.h" 36 36 37 #if 0 37 38 //****************************************************************************** 38 39 //****************************************************************************** … … 94 95 free(lpResource); 95 96 } 97 #endif 96 98 //****************************************************************************** 97 99 //****************************************************************************** … … 113 115 114 116 switch((int)restype) { 115 case NTRT_CURSOR: 116 return QueryConvertedCursorSize((CursorComponent *)resdata, ressize); 117 case NTRT_ICON: 118 return QueryConvertedIconSize((WINBITMAPINFOHEADER *)resdata, ressize); 119 120 // case NTRT_CURSOR: 121 // return QueryConvertedCursorSize((CursorComponent *)resdata, ressize); 117 122 118 123 case NTRT_GROUP_ICON:
Note:
See TracChangeset
for help on using the changeset viewer.