summaryrefslogtreecommitdiffstats
path: root/private/mvdm/wow32/wowtbl.h
blob: efc7312a7b514cb6e625a6ef0ea6aea1afc401df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*++ BUILD Version: 0001
 *
 *  WOW v1.0
 *
 *  Copyright (c) 1991, 1992, 1993 Microsoft Corporation
 *
 *  WOWTBL.H
 *  WOW32 API thunk table
 *
--*/



/* thunk table
 */
extern W32 aw32WOW[];


//
// the order of these must not change!  see kernel31\kdata.asm
//
typedef struct {
    WORD    kernel;
    WORD    dkernel;
    WORD    user;
    WORD    duser;
    WORD    gdi;
    WORD    dgdi;
    WORD    keyboard;
    WORD    sound;
    WORD    shell;
    WORD    winsock;
    WORD    toolhelp;
    WORD    mmedia;
    WORD    commdlg;
} TABLEOFFSETS;
typedef TABLEOFFSETS UNALIGNED *PTABLEOFFSETS;


VOID InitThunkTableOffsets(VOID);

extern TABLEOFFSETS tableoffsets;

#ifdef DEBUG_OR_WOWPROFILE

extern PSZ apszModNames[];
extern INT nModNames;
extern INT cAPIThunks;



INT ModFromCallID(INT iFun);
PSZ GetModName(INT iFun);
INT GetOrdinal(INT iFun);
INT TableOffsetFromName(PSZ szTab);


#endif