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

Last change on this file since 7029 was 4235, checked in by bird, 25 years ago

Added/extended some OSLib calls.

File size: 2.4 KB
Line 
1/* $Id: oslibmisc.h,v 1.7 2000-09-12 04:27:45 bird 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
16char *OSLibStripPath(char *path);
17
18ULONG OSLibiGetModuleHandleA(char *pszModule);
19ULONG OSLibQueryModuleHandle(char *modname);
20
21void OSLibWait(ULONG msec);
22
23ULONG OSLibAllocSel(ULONG size, USHORT *selector);
24ULONG OSLibFreeSel(USHORT selector);
25PVOID OSLibSelToFlat(USHORT selector);
26
27#define TIB_STACKTOP 0
28#define TIB_STACKLOW 1
29
30ULONG OSLibGetTIB(int tiboff);
31
32#define PIB_HMTE 0
33#define PIB_TASKHNDL PIB_HMTE
34#define PIB_TASKTYPE 1
35#define PIB_PCHCMD 2
36
37#define TASKTYPE_PM 0
38#define TASKTYPE_VIO 1
39
40ULONG OSLibGetPIB(int iPIB);
41
42ULONG OSLibAllocThreadLocalMemory(int nrdwords);
43
44ULONG OSLibWinInitialize();
45ULONG OSLibWinQueryMsgQueue(ULONG hab);
46
47//#define CC_NONE 0
48#define CC_USA 1
49#define CC_CANADA 2
50#define CC_LATIN_AMERICA 3
51#define CC_GREECE 30
52#define CC_NETHERLANDS 31
53#define CC_BELGIUM 32
54#define CC_FRANCE 33
55#define CC_SPAIN 34
56#define CC_ITALY 39
57#define CC_SWITZERLAND 41
58#define CC_AUSTRIA 43
59#define CC_UNITED_KINGDOM 44
60#define CC_DENMARK 45
61#define CC_SWEDEN 46
62#define CC_NORWAY 47
63#define CC_POLAND 48
64#define CC_WEST_GERMANY 49
65#define CC_MEXICO 52
66#define CC_BRAZIL 55
67#define CC_AUSTRALIA 61
68#define CC_NEW_ZEALAND 64
69#define CC_JAPAN 81
70#define CC_KOREA 82
71#define CC_CHINA 86
72#define CC_TAIWAN 88
73#define CC_TURKEY 90
74#define CC_PORTUGAL 351
75#define CC_LUXEMBOURG 352
76#define CC_ICELAND 354
77#define CC_FINLAND 358
78#define CC_CZECH_REPUBLIC 421
79#define CC_SLOVAK_REPUBLIC 422
80
81ULONG OSLibQueryCountry();
82
83#endif
Note: See TracBrowser for help on using the repository browser.