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

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

Set the codepage of the message queue for each new thread that is created. (done for the main thread in user32)

File size: 2.8 KB
Line 
1/* $Id: oslibmisc.h,v 1.10 2003-01-02 11:50:46 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
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);
46ULONG OSLibWinSetCp(ULONG hmq, ULONG codepage);
47
48//#define CTRY_NONE 0
49#define CTRY_USA 1
50#define CTRY_CANADA 2
51#define CTRY_LATIN_AMERICA 3
52#define CTRY_RUSSIA 7
53#define CTRY_GREECE 30
54#define CTRY_NETHERLANDS 31
55#define CTRY_BELGIUM 32
56#define CTRY_FRANCE 33
57#define CTRY_SPAIN 34
58#define CTRY_ITALY 39
59#define CTRY_SWITZERLAND 41
60#define CTRY_AUSTRIA 43
61#define CTRY_UNITED_KINGDOM 44
62#define CTRY_DENMARK 45
63#define CTRY_SWEDEN 46
64#define CTRY_NORWAY 47
65#define CTRY_POLAND 48
66#define CTRY_GERMANY 49
67#define CTRY_MEXICO 52
68#define CTRY_BRAZIL 55
69#define CTRY_AUSTRALIA 61
70#define CTRY_NEW_ZEALAND 64
71#define CTRY_SINGAPORE 65
72#define CTRY_JAPAN 81
73#define CTRY_KOREA 82
74#define CTRY_CHINA 86
75#define CTRY_TAIWAN 88
76#define CTRY_TURKEY 90
77#define CTRY_PORTUGAL 351
78#define CTRY_LUXEMBOURG 352
79#define CTRY_IRELAND 353
80#define CTRY_ICELAND 354
81#define CTRY_FINLAND 358
82#define CTRY_BULGARIA 359
83#define CTRY_CROATIA 385
84#define CTRY_SLOVENIA 386
85#define CTRY_CZECH_REPUBLIC 421
86#define CTRY_SLOVAK_REPUBLIC 422
87#define CTRY_HONG_KONG 852
88//#define CTRY_TAIWAN 886
89
90ULONG OSLibQueryCountry();
91
92#endif
Note: See TracBrowser for help on using the repository browser.