| Last change
 on this file since 21420 was             21302, checked in by ydario, 16 years ago | 
        
          | 
Kernel32 updates.
 | 
        
          | 
              
Property                 svn:eol-style
 set to                 native | 
        
          | File size:
            1.1 KB | 
      
      
| Rev | Line |  | 
|---|
| [21302] | 1 | /* $Id: customloader.h,v 1.6 2004/04/20 08:43:11 sandervl Exp $ */ | 
|---|
|  | 2 |  | 
|---|
|  | 3 | #ifndef _CUSTOMLOADER_H_ | 
|---|
|  | 4 | #define _CUSTOMLOADER_H_ | 
|---|
|  | 5 |  | 
|---|
|  | 6 | #include <win32type.h> | 
|---|
|  | 7 | #include <winconst.h> | 
|---|
|  | 8 |  | 
|---|
|  | 9 | #define MAGIC_STUBEXE_SIGNATURE 0xA2A09876 | 
|---|
|  | 10 | #define MAGIC_STUBEXE_SIZE      8 | 
|---|
|  | 11 |  | 
|---|
|  | 12 | //Use by LdrGeneric | 
|---|
|  | 13 | extern char szErrorTitle[]; | 
|---|
|  | 14 | extern char szAppNotFound[]; | 
|---|
|  | 15 | extern char szDefaultExe[]; | 
|---|
|  | 16 | extern char szDefaultExePath[]; | 
|---|
|  | 17 | extern char szCustomDll[]; | 
|---|
|  | 18 |  | 
|---|
|  | 19 | ULONG LdrAllocateImage(char *filename, ULONG *pulPEOffset, BOOL *pfConsoleApp); | 
|---|
|  | 20 | ULONG LdrAllocateImageNE(char *filename, BOOL *pfNEExe, PBOOL pfConsoleApp); | 
|---|
|  | 21 | int   LdrGeneric(int argc, char *argv[]); | 
|---|
|  | 22 | int   LdrGenericStubExe(int argc, char *argv[]); | 
|---|
|  | 23 | BOOL  LdrSetLibPath(char *pszHomeDir); | 
|---|
|  | 24 |  | 
|---|
|  | 25 | BOOL  LdrRegQueryKey(HKEY hRoot, char *szKeyPath, char *szKeyName, DWORD dwType, | 
|---|
|  | 26 | LPBYTE lpData, DWORD *pcbCount); | 
|---|
|  | 27 |  | 
|---|
|  | 28 | /* | 
|---|
|  | 29 | * PE version checking function | 
|---|
|  | 30 | * | 
|---|
|  | 31 | * Returns: 0  - equal | 
|---|
|  | 32 | *          1  - file1 > file2 | 
|---|
|  | 33 | *         -1  - file1 < file2 | 
|---|
|  | 34 | *         -2  - error | 
|---|
|  | 35 | */ | 
|---|
|  | 36 | int   LdrCompareVersion(LPSTR lpszModule1, LPSTR lpszModule2); | 
|---|
|  | 37 |  | 
|---|
|  | 38 | #endif /* _CUSTOMLOADER_H_ */ | 
|---|
|  | 39 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.