Changeset 3622 for trunk/include


Ignore:
Timestamp:
May 28, 2000, 6:40:24 PM (25 years ago)
Author:
sandervl
Message:

header update

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win32api.h

    r3421 r3622  
    1 /* $Id: win32api.h,v 1.10 2000-04-18 20:05:40 sandervl Exp $ */
     1/* $Id: win32api.h,v 1.11 2000-05-28 16:40:23 sandervl Exp $ */
    22
    33/*
     
    9494int    WIN32API GetStretchBltMode( HDC hdc);
    9595
     96HRSRC   WIN32API FindResourceA(HINSTANCE hModule, LPCSTR lpszName, LPCSTR lpszType);
     97HRSRC   WIN32API FindResourceW(HINSTANCE hModule, LPCSTR lpszName, LPCSTR lpszType);
     98HGLOBAL WIN32API LoadResource(HINSTANCE hModule, HRSRC hRes);
     99DWORD   WIN32API SizeofResource(HINSTANCE hModule, HRSRC hRes);
     100PVOID   WIN32API LockResource(HGLOBAL hRes);
     101
    96102#endif
  • trunk/include/winconst.h

    r3416 r3622  
    1 /* $Id: winconst.h,v 1.32 2000-04-18 11:09:53 sandervl Exp $ */
     1/* $Id: winconst.h,v 1.33 2000-05-28 16:40:23 sandervl Exp $ */
    22
    33/*
     
    10151015
    10161016  /* biCompression */
    1017 #define BI_RGB           0
    1018 #define BI_RLE8          1
    1019 #define BI_RLE4          2
    1020 #define BI_BITFIELDS     3
     1017#define BI_RGB_W           0
     1018#define BI_RLE8_W          1
     1019#define BI_RLE4_W          2
     1020#define BI_BITFIELDS_W     3
    10211021
    10221022  /* Polygon modes */
     
    13301330#define HALFTONE_W             4
    13311331#define MAXSTRETCHBLTMODE_W    4
     1332
     1333    #define    NTRT_NEWRESOURCE      0x2000
     1334    #define    NTRT_ERROR            0x7fff
     1335    #define    NTRT_CURSOR           1
     1336    #define    NTRT_BITMAP           2
     1337    #define    NTRT_ICON             3
     1338    #define    NTRT_MENU             4
     1339    #define    NTRT_DIALOG           5
     1340    #define    NTRT_STRING           6
     1341    #define    NTRT_FONTDIR          7
     1342    #define    NTRT_FONT             8
     1343    #define    NTRT_ACCELERATORS     9
     1344    #define    NTRT_RCDATA           10
     1345    #define    NTRT_MESSAGETABLE     11
     1346    #define    NTRT_GROUP_CURSOR     12
     1347    #define    NTRT_GROUP_ICON       14
     1348    #define    NTRT_VERSION          16
     1349    #define    NTRT_NEWBITMAP        (NTRT_BITMAP|NTRT_NEWRESOURCE)
     1350    #define    NTRT_NEWMENU          (NTRT_MENU|NTRT_NEWRESOURCE)
     1351    #define    NTRT_NEWDIALOG        (NTRT_DIALOG|NTRT_NEWRESOURCE)
  • trunk/include/winres.h

    r1454 r3622  
    1 /* $Id: winres.h,v 1.11 1999-10-26 11:16:14 sandervl Exp $ */
     1/* $Id: winres.h,v 1.12 2000-05-28 16:40:24 sandervl Exp $ */
    22
    33/*
    4  * Win32 resource class
     4 * Win32 to OS/2 resource conversion
    55 *
    66 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
     
    1313#define __WINRES_H__
    1414
    15 class Win32ImageBase;
    16 
    17 //Use to distinguish between converted OS/2 resources in an image (pe2lx'ed) or
    18 //resources that are loaded from the original win32 image (pe loader)
    19 #define RSRC_PELOADER        0
    20 #define RSRC_PE2LX           1
    21 #define RSRC_CUSTOMNODATA    2  //resources created in runtime without data (i.e. CreateMenu)
    22 #define RSRC_CUSTOMINDIRECT  3  //resources indirectly created in runtime (i.e. CreateMenuIndirect)
    23 
    24 class Win32Resource
    25 {
    26 public:
    27                    // Constructors and destructors
    28                    Win32Resource(); //custum resource (i.e. created by app in runtime)
    29                    Win32Resource(Win32ImageBase *module, ULONG id, ULONG type,
    30                                  ULONG size, char *resdata);
    31     virtual       ~Win32Resource();
    32 
    33     virtual  PVOID lockResource();      //get original win32 resource
    34     virtual  PVOID lockOS2Resource();   //get converted OS/2 resource
    35 
    36              //return size of original win32 resource
    37              ULONG getSize()            { return ressize; };
    38              //return size of converted win32 resource
    39              ULONG getOS2Size();
    40 
    41              ULONG getOS2Handle()               { return OS2ResHandle; };
    42               void setOS2Handle(ULONG handle)   { OS2ResHandle = handle; };
    43 
    44     static    void destroyAll(Win32ImageBase *module);
    45 
    46 protected:
    47 
    48              PVOID convertResource(void *win32res);
    49 
    50     Win32ImageBase *module;
    51 
    52              HRSRC hres;
    53              ULONG type;
    54              ULONG id;
    55 
    56              PVOID os2resdata;
    57              PVOID winresdata;
    58 
    59              ULONG OS2ResHandle;
    60 
    61              ULONG ressize;
    62                int resType;
    63 
    64              BOOL  isUnicode;
    65 
    66                                // Linked list management
    67   Win32Resource*   next;               // Next Resource in module
    68 
    69 private:
    70     friend    class Win32ImageBase;
    71 };
    72 
    73 
    74     #define    NTRT_NEWRESOURCE      0x2000
    75     #define    NTRT_ERROR            0x7fff
    76     #define    NTRT_CURSOR           1
    77     #define    NTRT_BITMAP           2
    78     #define    NTRT_ICON             3
    79     #define    NTRT_MENU             4
    80     #define    NTRT_DIALOG           5
    81     #define    NTRT_STRING           6
    82     #define    NTRT_FONTDIR          7
    83     #define    NTRT_FONT             8
    84     #define    NTRT_ACCELERATORS     9
    85     #define    NTRT_RCDATA           10
    86     #define    NTRT_MESSAGETABLE     11
    87     #define    NTRT_GROUP_CURSOR     12
    88     #define    NTRT_GROUP_ICON       14
    89     #define    NTRT_VERSION          16
    90     #define    NTRT_NEWBITMAP        (NTRT_BITMAP|NTRT_NEWRESOURCE)
    91     #define    NTRT_NEWMENU          (NTRT_MENU|NTRT_NEWRESOURCE)
    92     #define    NTRT_NEWDIALOG        (NTRT_DIALOG|NTRT_NEWRESOURCE)
    93 
    94 
    95 #define MAX_RES 17
    96 extern char *ResTypes[MAX_RES];
     15PVOID WIN32API ConvertResourceToOS2(HINSTANCE hInstance, LPSTR restype, HRSRC hResource);
     16ULONG WIN32API QueryConvertedResourceSize(HINSTANCE hInstance, LPSTR restype, HRSRC hResource);
    9717
    9818#endif
Note: See TracChangeset for help on using the changeset viewer.