source: trunk/include/customloader.h@ 22145

Last change on this file since 22145 was 21302, checked in by ydario, 16 years ago

Kernel32 updates.

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
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
13extern char szErrorTitle[];
14extern char szAppNotFound[];
15extern char szDefaultExe[];
16extern char szDefaultExePath[];
17extern char szCustomDll[];
18
19ULONG LdrAllocateImage(char *filename, ULONG *pulPEOffset, BOOL *pfConsoleApp);
20ULONG LdrAllocateImageNE(char *filename, BOOL *pfNEExe, PBOOL pfConsoleApp);
21int LdrGeneric(int argc, char *argv[]);
22int LdrGenericStubExe(int argc, char *argv[]);
23BOOL LdrSetLibPath(char *pszHomeDir);
24
25BOOL 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 */
36int LdrCompareVersion(LPSTR lpszModule1, LPSTR lpszModule2);
37
38#endif /* _CUSTOMLOADER_H_ */
39
Note: See TracBrowser for help on using the repository browser.