Ignore:
Timestamp:
Oct 9, 2001, 10:25:21 PM (24 years ago)
Author:
sandervl
Message:

Image header page must be readonly + disabled high memory usage for heap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winimagebase.h

    r5959 r6975  
    1 /* $Id: winimagebase.h,v 1.19 2001-06-10 22:32:17 sandervl Exp $ */
     1/* $Id: winimagebase.h,v 1.20 2001-10-09 20:25:20 sandervl Exp $ */
    22
    33/*
     
    175175};
    176176
    177 //SvL: This structure is placed at the end of the first page of the image (header
    178 //     page), so we can determine the Win32Image pointer from a HINSTANCE variable
    179 //     (which is actually the address of the win32 module)
    180 typedef struct
    181 {
    182   ULONG           magic1;
    183   Win32ImageBase *image;
    184   ULONG           magic2;
    185 } WINIMAGE_LOOKUP;
    186 
    187 #define WINIMAGE_LOOKUPADDR(a)  (WINIMAGE_LOOKUP *)((ULONG)a + PAGE_SIZE - sizeof(WINIMAGE_LOOKUP))
    188 
    189177#endif //__WINIMAGEBASE_H__
Note: See TracChangeset for help on using the changeset viewer.