Ignore:
Timestamp:
Jun 28, 2000, 8:08:36 PM (25 years ago)
Author:
sandervl
Message:

findresource cleanup

File:
1 edited

Legend:

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

    r3720 r3765  
    1 /* $Id: winimagebase.h,v 1.12 2000-06-17 09:03:36 sandervl Exp $ */
     1/* $Id: winimagebase.h,v 1.13 2000-06-28 18:08:35 sandervl Exp $ */
    22
    33/*
     
    2222#endif
    2323
    24 #define LANG_GETFIRST           0x80000000
    25 #define IDLANG_GETFIRST         LANG_GETFIRST
     24#define LANG_GETFIRST           0xF0000000
     25#define ID_GETFIRST             0xF0000000
    2626
    2727#ifndef ENUMRESNAMEPROC
     
    5959
    6060//Returns required OS version for this image
    61 virtual ULONG     getVersion();
     61virtual ULONG getVersion();
    6262
    63 virtual void setFullPath(char *name);
     63virtual void  setFullPath(char *name);
    6464        char *getFullPath()           { return fullpath; };
    6565
     
    6767
    6868        //findResource returns the pointer of the resource's IMAGE_RESOURCE_DATA_ENTRY structure
    69 virtual HRSRC findResourceA(LPCSTR lpszName, LPSTR lpszType, ULONG lang = LANG_GETFIRST);
    70         HRSRC findResourceW(LPWSTR lpszName, LPWSTR lpszType, ULONG lang = LANG_GETFIRST);
     69        HRSRC findResourceA(LPCSTR lpszName, LPSTR lpszType, ULONG lang = LANG_GETFIRST);
     70        HRSRC findResourceW(LPWSTR lpszName, LPWSTR lpszType, ULONG lang = LANG_GETFIRST);
    7171
    72 virtual ULONG getResourceSizeA(LPCSTR lpszName, LPSTR lpszType, ULONG lang = LANG_GETFIRST);
    73         ULONG getResourceSizeW(LPCWSTR lpszName, LPWSTR lpszType, ULONG lang = LANG_GETFIRST);
    74 virtual BOOL  enumResourceNamesA(HMODULE hmod, LPCTSTR  lpszType, ENUMRESNAMEPROCA lpEnumFunc, LONG lParam);
    75 virtual BOOL  enumResourceNamesW(HMODULE hmod, LPCWSTR  lpszType, ENUMRESNAMEPROCW lpEnumFunc, LONG lParam);
    76 virtual BOOL  enumResourceTypesA(HMODULE hmod, ENUMRESTYPEPROCA lpEnumFunc,
     72        ULONG getResourceSizeA(LPSTR lpszName, LPSTR lpszType, ULONG lang = LANG_GETFIRST);
     73        ULONG getResourceSizeW(LPWSTR lpszName, LPWSTR lpszType, ULONG lang = LANG_GETFIRST);
     74        BOOL  enumResourceNamesA(HMODULE hmod, LPCTSTR  lpszType, ENUMRESNAMEPROCA lpEnumFunc, LONG lParam);
     75        BOOL  enumResourceNamesW(HMODULE hmod, LPCWSTR  lpszType, ENUMRESNAMEPROCW lpEnumFunc, LONG lParam);
     76        BOOL  enumResourceTypesA(HMODULE hmod, ENUMRESTYPEPROCA lpEnumFunc,
    7777                                 LONG lParam);
    78 virtual BOOL  enumResourceTypesW(HMODULE hmod, ENUMRESTYPEPROCW lpEnumFunc,
     78        BOOL  enumResourceTypesW(HMODULE hmod, ENUMRESTYPEPROCW lpEnumFunc,
    7979                                 LONG lParam);
    8080
    81 virtual ULONG getVersionSize();
    82 virtual BOOL  getVersionStruct(char *verstruct, ULONG bufLength);
     81        ULONG getVersionSize();
     82        BOOL  getVersionStruct(char *verstruct, ULONG bufLength);
    8383
    8484        //Returns pointer to data of resource handle
     
    140140        ULONG                 tlsIndex;         //module TLS index
    141141
    142         ULONG getPEResourceSize(ULONG id, ULONG type, ULONG lang = LANG_GETFIRST);
    143 
    144         PIMAGE_RESOURCE_DATA_ENTRY getPEResourceEntry(ULONG id, ULONG type, ULONG lang, int *error);
    145         PIMAGE_RESOURCE_DATA_ENTRY ProcessResSubDir(PIMAGE_RESOURCE_DIRECTORY prdType,
    146                                                     ULONG *nodeData, int level, int *error);
    147142        PIMAGE_RESOURCE_DIRECTORY  getResSubDirW(PIMAGE_RESOURCE_DIRECTORY pResDir, LPCWSTR lpszName);
    148143        PIMAGE_RESOURCE_DIRECTORY  getResSubDirA(PIMAGE_RESOURCE_DIRECTORY pResDir, LPCTSTR lpszName);
    149144
    150         PIMAGE_RESOURCE_DIRECTORY pResDir;
     145        PIMAGE_RESOURCE_DATA_ENTRY getResDataLang(PIMAGE_RESOURCE_DIRECTORY pResDir, ULONG language, BOOL fGetDefault = FALSE);
     146
     147        PIMAGE_RESOURCE_DIRECTORY pResRootDir;
    151148
    152149        //substracted from RVA data offsets
Note: See TracChangeset for help on using the changeset viewer.