mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
349a95315b
Sun Feb 2 12:31:03 1997 Alexandre Julliard <julliard@lrc.epfl.ch> * [files/drive.c] Fixed SetCurrentDirectory() to also change the current drive. * [win32/except.c] [tools/build.c] Use Win32 register functions to implement exception handling. Fixed UnhandledExceptionFilter. Fri Jan 31 15:42:41 1997 David Faure <david.faure@ihamy.insa-lyon.fr> * [windows/keyboard.c] Added KEYBOARD_GenerateMsg to generate Caps Lock and NumLock events Added calls to KEYBOARD_GenerateMsg when the key is pressed/released or when the state has changed, out of wine. Changed type 3-state 'ToggleKeyState' to boolean. The On/Off is given by InputKeyStateTable. Wed Jan 29 21:53:04 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [loader/*resource.c][if1632/thunk.c] EnumResource* added. * [loader/pe_resource.] [loader/resource.c] SizeofResource32(), LoadAccelerators32() added. * [misc/lstr.c] FormatMessage %n added. * [misc/crtdll.c][include/ctrdll.h][if1632/crtdll.spec] _chdrive,_errno,_isctype added. * [misc/cpu.c] Replaced runtime_cpu by GetSystemInfo(). * [windows/hook.c][include/hook.h] Fixed mapping of hooks to win32/unicode. * [windows/keyboard.c] [windows/defwnd.c] Updated to win32 standard. ALT-<Menukey> fixed. * [windows/queue.c] GetWindowThreadProcessId() implemented. Mon Jan 27 16:42:49 1997 John Harvey <john@division.co.uk> * [graphics/metafiledrv/*] [graphics/x11drv/*] [objects/bitmap.c] [objects/brush.c] [objects/font.c] [objects/gdiobj.c] [objects/pen.c] Moved SelectObject to graphics drivers. Printer support now works in a few cases but is definitely not complete. Generic/text driver works. The postscript driver works if true type fonts are disabled from the control panel. To enable printer support add Printer=on to the wine section of your wine.conf file. This causes write not to work properly. I know that several other printer drivers do not work. * [tools/build.c] Make .stabs not used for svr4 since it doesn't use GNU assembler. * [misc/fontengine.c] Make sure a printf doesn't crash the system. Sat Jan 25 15:53:35 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk> * [objects/metafile.c] Fixed some problems with PlayMetaFileRecord(). * [objects/dc.c] hClipRgn gets initialized in GetDCState(). Fri Jan 24 21:22:26 1997 Philippe De Muyter <phdm@info.ucl.ac.be> * [debugger/stabs.c] Handle file names beginning with '/'. Fri Jan 24 18:33:04 1997 Robert Pouliot <krynos@clic.net> * [*/*] Some more patches for OS/2 support. Fri Jan 24 11:30:41 1997 Bang Jun-Young <bangjy@nownuri.nowcom.co.kr> * [resources/sysres_Ko.rc] Updated support for Korean (Ko) language.
86 lines
3.8 KiB
C
86 lines
3.8 KiB
C
/*
|
|
* Thread definitions
|
|
*
|
|
* Copyright 1996 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_THREAD_H
|
|
#define __WINE_THREAD_H
|
|
|
|
#include "process.h"
|
|
#include "winnt.h"
|
|
|
|
/* Thread exception block */
|
|
typedef struct _TEB
|
|
{
|
|
void *except; /* 00 Head of exception handling chain */
|
|
void *stack_top; /* 04 Top of thread stack */
|
|
void *stack_low; /* 08 Stack low-water mark */
|
|
HTASK16 htask16; /* 0c Win16 task handle */
|
|
WORD stack_sel; /* 0e 16-bit stack selector */
|
|
DWORD selman_list; /* 10 Selector manager list */
|
|
DWORD user_ptr; /* 14 User pointer */
|
|
struct _TEB *self; /* 18 Pointer to this structure */
|
|
WORD flags; /* 1c Flags */
|
|
WORD mutex_count; /* 1e Win16 mutex count */
|
|
DWORD debug_context; /* 20 Debug context */
|
|
DWORD *ppriority; /* 24 Pointer to current priority */
|
|
HQUEUE16 queue; /* 28 Message queue */
|
|
WORD pad1; /* 2a */
|
|
LPVOID *tls_ptr; /* 2c Pointer to TLS array */
|
|
} TEB;
|
|
|
|
/* Thread database */
|
|
typedef struct _THDB
|
|
{
|
|
K32OBJ header; /* 00 Kernel object header */
|
|
PDB32 *process; /* 08 Process owning this thread */
|
|
K32OBJ *event; /* 0c Thread event */
|
|
TEB teb; /* 10 Thread exception block */
|
|
PDB32 *process2; /* 40 Same as offset 08 (?) */
|
|
DWORD flags; /* 44 Flags */
|
|
DWORD exit_code; /* 48 Termination status */
|
|
WORD teb_sel; /* 4c Selector to TEB */
|
|
WORD emu_sel; /* 4e 80387 emulator selector */
|
|
DWORD unknown1; /* 50 Unknown */
|
|
void *wait_list; /* 54 Event waiting list */
|
|
DWORD unknown2; /* 58 Unknown */
|
|
void *ring0_thread; /* 5c Pointer to ring 0 thread */
|
|
void *ptdbx; /* 60 Pointer to TDBX structure */
|
|
void *stack_base; /* 64 Base of the stack */
|
|
void *exit_stack; /* 68 Stack pointer on thread exit */
|
|
void *emu_data; /* 6c Related to 80387 emulation */
|
|
DWORD last_error; /* 70 Last error code */
|
|
void *debugger_CB; /* 74 Debugger context block */
|
|
DWORD debug_thread; /* 78 Thread debugging this one (?) */
|
|
void *pcontext; /* 7c Thread register context */
|
|
DWORD unknown3[3]; /* 80 Unknown */
|
|
WORD current_ss; /* 8c Another 16-bit stack selector */
|
|
WORD pad2; /* 8e */
|
|
void *ss_table; /* 90 Pointer to info about 16-bit stack */
|
|
WORD thunk_ss; /* 94 Yet another 16-bit stack selector */
|
|
WORD pad3; /* 96 */
|
|
LPVOID tls_array[64]; /* 98 Thread local storage */
|
|
DWORD delta_priority; /* 198 Priority delta */
|
|
DWORD unknown4[7]; /* 19c Unknown */
|
|
void *create_data; /* 1b8 Pointer to creation structure */
|
|
DWORD suspend_count; /* 1bc SuspendThread() counter */
|
|
DWORD unknown5[9]; /* 1c0 Unknown */
|
|
K32OBJ *crit_section; /* 1e4 Some critical section */
|
|
K32OBJ *win16_mutex; /* 1e8 Pointer to Win16 mutex */
|
|
K32OBJ *win32_mutex; /* 1ec Pointer to KERNEL32 mutex */
|
|
K32OBJ *crit_section2; /* 1f0 Another critical section */
|
|
DWORD unknown6[3]; /* 1f4 Unknown */
|
|
/* The following are Wine-specific fields */
|
|
CONTEXT context; /* 200 Thread context */
|
|
} THDB;
|
|
|
|
|
|
extern THDB *THREAD_Create( PDB32 *pdb, DWORD stack_size,
|
|
LPTHREAD_START_ROUTINE start_addr );
|
|
extern void THREAD_Destroy( K32OBJ *ptr );
|
|
|
|
extern THDB *pCurrentThread;
|
|
|
|
#endif /* __WINE_THREAD_H */
|