source: trunk/src/kernel32/oslibmisc.h@ 9617

Last change on this file since 9617 was 9617, checked in by sandervl, 23 years ago

added dll load hook and function to override named or ordinal exports

File size: 2.9 KB
Line 
1/* $Id: oslibmisc.h,v 1.11 2003-01-05 12:31:24 sandervl Exp $ */
2/*
3 * Misc util. procedures
4 *
5 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
6 * Copyright 1998 Peter FitzSimmons
7 * Copyright 1998 Patrick Haller
8 *
9 */
10#ifndef __OSLIBMISC_H__
11#define __OSLIBMISC_H__
12
13char *OSLibGetDllName(ULONG hModule);
14BOOL OSLibGetDllName(ULONG hModule, char *name, int length);
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20char *OSLibStripPath(char *path);
21
22ULONG OSLibiGetModuleHandleA(char *pszModule);
23ULONG OSLibQueryModuleHandle(char *modname);
24
25void OSLibWait(ULONG msec);
26
27ULONG OSLibAllocSel(ULONG size, USHORT *selector);
28ULONG OSLibFreeSel(USHORT selector);
29PVOID OSLibSelToFlat(USHORT selector);
30
31#define TIB_STACKTOP 0
32#define TIB_STACKLOW 1
33
34ULONG OSLibGetTIB(int tiboff);
35
36#define PIB_HMTE 0
37#define PIB_TASKHNDL PIB_HMTE
38#define PIB_TASKTYPE 1
39#define PIB_PCHCMD 2
40
41#define TASKTYPE_PM 0
42#define TASKTYPE_VIO 1
43
44ULONG OSLibGetPIB(int iPIB);
45
46ULONG OSLibAllocThreadLocalMemory(int nrdwords);
47
48ULONG OSLibWinInitialize();
49ULONG OSLibWinQueryMsgQueue(ULONG hab);
50ULONG OSLibWinSetCp(ULONG hmq, ULONG codepage);
51
52//#define CTRY_NONE 0
53#define CTRY_USA 1
54#define CTRY_CANADA 2
55#define CTRY_LATIN_AMERICA 3
56#define CTRY_RUSSIA 7
57#define CTRY_GREECE 30
58#define CTRY_NETHERLANDS 31
59#define CTRY_BELGIUM 32
60#define CTRY_FRANCE 33
61#define CTRY_SPAIN 34
62#define CTRY_ITALY 39
63#define CTRY_SWITZERLAND 41
64#define CTRY_AUSTRIA 43
65#define CTRY_UNITED_KINGDOM 44
66#define CTRY_DENMARK 45
67#define CTRY_SWEDEN 46
68#define CTRY_NORWAY 47
69#define CTRY_POLAND 48
70#define CTRY_GERMANY 49
71#define CTRY_MEXICO 52
72#define CTRY_BRAZIL 55
73#define CTRY_AUSTRALIA 61
74#define CTRY_NEW_ZEALAND 64
75#define CTRY_SINGAPORE 65
76#define CTRY_JAPAN 81
77#define CTRY_KOREA 82
78#define CTRY_CHINA 86
79#define CTRY_TAIWAN 88
80#define CTRY_TURKEY 90
81#define CTRY_PORTUGAL 351
82#define CTRY_LUXEMBOURG 352
83#define CTRY_IRELAND 353
84#define CTRY_ICELAND 354
85#define CTRY_FINLAND 358
86#define CTRY_BULGARIA 359
87#define CTRY_CROATIA 385
88#define CTRY_SLOVENIA 386
89#define CTRY_CZECH_REPUBLIC 421
90#define CTRY_SLOVAK_REPUBLIC 422
91#define CTRY_HONG_KONG 852
92//#define CTRY_TAIWAN 886
93
94ULONG OSLibQueryCountry();
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif
Note: See TracBrowser for help on using the repository browser.