source: trunk/src/win32k/include/LdrCalls.h@ 2013

Last change on this file since 2013 was 1678, checked in by bird, 26 years ago

Some bugsfixes - Yield is disabled.
Added parameters.
Correcte moduleheaders.
Introduced a new base class for virtual lx modules + some elf sketches.

File size: 3.9 KB
Line 
1/* $Id: LdrCalls.h,v 1.2 1999-11-10 01:45:32 bird Exp $
2 *
3 * Prototypes for the loader overrided function.
4 *
5 * Copyright (c) 1998-1999 knut st. osmundsen
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 *
9 */
10#ifndef _ldrCalls_h_
11#define _ldrCalls_h_
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/*******************************************************************************
18* Defined Constants And Macros *
19*******************************************************************************/
20#define LDRCALL __stdcall
21
22
23/**
24 * _ldrClose
25 */
26extern ULONG LDRCALL _ldrClose( /* retd 0x04 */
27 SFN p1 /* ebp + 0x08 */
28 );
29
30ULONG LDRCALL myldrClose(SFN);
31
32
33/**
34 * _ldrOpen
35 */
36extern ULONG LDRCALL _ldrOpen( /* retd 0x0c */
37 PSFN p1, /* ebp + 0x08 */
38 PCHAR p2, /* ebp + 0x0c */
39 ULONG p3 /* ebp + 0x10 */
40 );
41
42ULONG LDRCALL myldrOpen(PSFN,PCHAR,ULONG);
43
44
45/**
46 * _ldrRead
47 */
48extern ULONG LDRCALL _ldrRead( /* retd 0x18 */
49 SFN p1, /* ebp + 0x08 */
50 ULONG p2, /* ebp + 0x0c */
51 PVOID p3, /* ebp + 0x10 */
52 ULONG p4, /* ebp + 0x14 */
53 ULONG p5, /* ebp + 0x18 */
54 PMTE p6 /* ebp + 0x1c */
55 );
56
57ULONG LDRCALL myldrRead(
58 SFN hFile,
59 ULONG ulOffset,
60 PVOID pBuffer,
61 ULONG ulFlags ,
62 ULONG ulBytesToRead,
63 PMTE pMTE
64 );
65
66
67
68/**
69 * _LDRQAppType
70 */
71extern ULONG LDRCALL _LDRQAppType( /* retd 0x08 */
72 ULONG p1, /* ebp + 0x08 */
73 ULONG p2 /* ebp + 0x0c */
74 );
75
76ULONG LDRCALL myLDRQAppType(ULONG,ULONG);
77
78
79
80#if 0
81/****************************************/
82/* _LDRLoadExe */
83/****************************************/
84extern int LDRCALL _LDRLoadExe( /* retd 0x08 */
85 PCHAR pExeName, /* ebp + 0x08 */
86 PULONG param2 /* ebp + 0x0c */
87 );
88
89int LDRCALL myLDRLoadExe(PCHAR,PULONG);
90
91
92
93/****************************************/
94/* _ldrGetResource */
95/****************************************/
96extern int LDRCALL _ldrGetResource( /* retd 0x14 - 20d */
97 USHORT idType, /* ebp + 0x08 */
98 ULONG idName, /* ebp + 0x0c */
99 USHORT hMod, /* ebp + 0x10 */
100 PPVOID ppRes, /* ebp + 0x14 */
101 ULONG ulP5 /* ebp + 0x18 */
102 );
103
104int LDRCALL myldrGetResource(USHORT,ULONG,USHORT,PPVOID,ULONG);
105
106
107
108/****************************************/
109/* _ldrOpenNewExe */
110/****************************************/
111extern int LDRCALL _ldrOpenNewExe( /* retd 0x10 - 16d */
112 PCHAR pszName, /* ebp + 0x08 */
113 USHORT lenName, /* ebp + 0x0c */
114 ULONG ulP3, /* ebp + 0x10 */
115 ULONG ulP4 /* ebp + 0x14 */
116 );
117
118int LDRCALL myldrOpenNewExe(PCHAR,USHORT,ULONG,ULONG);
119
120
121
122/****************************************/
123/* _ldrCreateMte */
124/****************************************/
125extern int LDRCALL _ldrCreateMte( /* retd 0x08 */
126 ULONG p1, /* ebp + 0x08 */
127 ULONG p2 /* ebp + 0x0c */
128 );
129
130int LDRCALL myldrCreateMte(ULONG,ULONG);
131
132
133
134/****************************************/
135/* _ldrGetMte */
136/****************************************/
137extern int LDRCALL _ldrGetMte( /* retd 0x14 - 20d */
138 ULONG p1, /* ebp + 0x08 */
139 ULONG p2, /* ebp + 0x0c */
140 ULONG p3, /* ebp + 0x10 */
141 ULONG p4, /* ebp + 0x14 */
142 ULONG p5 /* ebp + 0x18 */
143 );
144
145int LDRCALL myldrGetMte(ULONG,ULONG,ULONG,ULONG,ULONG);
146
147#endif
148
149#ifdef __cplusplus
150} /* extern "C" */
151#endif
152
153#endif
154
Note: See TracBrowser for help on using the repository browser.