Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fc5c459d
Commit
fc5c459d
authored
Dec 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Move the kernel thread data definitions to kernel16_private.h.
parent
84e51e73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
18 deletions
+19
-18
kernel16_private.h
dlls/kernel32/kernel16_private.h
+19
-0
kernel_private.h
dlls/kernel32/kernel_private.h
+0
-18
No files found.
dlls/kernel32/kernel16_private.h
View file @
fc5c459d
...
...
@@ -239,6 +239,9 @@ extern void SNOOP16_RegisterDLL(HMODULE16,LPCSTR);
extern
FARPROC16
SNOOP16_GetProcAddress16
(
HMODULE16
,
DWORD
,
FARPROC16
);
extern
int
SNOOP16_ShowDebugmsgSnoop
(
const
char
*
dll
,
int
ord
,
const
char
*
fname
);
/* syslevel.c */
extern
VOID
SYSLEVEL_CheckNotLevel
(
INT
level
);
/* task.c */
extern
void
TASK_CreateMainTask
(
void
);
extern
HTASK16
TASK_SpawnTask
(
NE_MODULE
*
pModule
,
WORD
cmdShow
,
...
...
@@ -271,6 +274,22 @@ extern DWORD CallTo16_TebSelector;
extern
SEGPTR
CALL32_CBClient_RetAddr
;
extern
SEGPTR
CALL32_CBClientEx_RetAddr
;
struct
tagSYSLEVEL
;
struct
kernel_thread_data
{
WORD
stack_sel
;
/* 16-bit stack selector */
WORD
htask16
;
/* Win16 task handle */
DWORD
sys_count
[
4
];
/* syslevel mutex entry counters */
struct
tagSYSLEVEL
*
sys_mutex
[
4
];
/* syslevel mutex pointers */
void
*
pad
[
45
];
/* change this if you add fields! */
};
static
inline
struct
kernel_thread_data
*
kernel_get_thread_data
(
void
)
{
return
(
struct
kernel_thread_data
*
)
NtCurrentTeb
()
->
SystemReserved1
;
}
#ifdef __i386__
#define DEFINE_REGS_ENTRYPOINT( name, args ) \
__ASM_GLOBAL_FUNC( name, \
...
...
dlls/kernel32/kernel_private.h
View file @
fc5c459d
...
...
@@ -23,22 +23,6 @@
#include "wine/server.h"
struct
tagSYSLEVEL
;
struct
kernel_thread_data
{
WORD
stack_sel
;
/* 16-bit stack selector */
WORD
htask16
;
/* Win16 task handle */
DWORD
sys_count
[
4
];
/* syslevel mutex entry counters */
struct
tagSYSLEVEL
*
sys_mutex
[
4
];
/* syslevel mutex pointers */
void
*
pad
[
45
];
/* change this if you add fields! */
};
static
inline
struct
kernel_thread_data
*
kernel_get_thread_data
(
void
)
{
return
(
struct
kernel_thread_data
*
)
NtCurrentTeb
()
->
SystemReserved1
;
}
HANDLE
WINAPI
OpenConsoleW
(
LPCWSTR
,
DWORD
,
BOOL
,
DWORD
);
BOOL
WINAPI
VerifyConsoleIoHandle
(
HANDLE
);
HANDLE
WINAPI
DuplicateConsoleHandle
(
HANDLE
,
DWORD
,
BOOL
,
DWORD
);
...
...
@@ -68,8 +52,6 @@ extern const WCHAR *DIR_Windows;
extern
const
WCHAR
*
DIR_System
;
extern
const
WCHAR
*
DIR_SysWow64
;
extern
VOID
SYSLEVEL_CheckNotLevel
(
INT
level
);
extern
void
FILE_SetDosError
(
void
);
extern
WCHAR
*
FILE_name_AtoW
(
LPCSTR
name
,
BOOL
alloc
);
extern
DWORD
FILE_name_WtoA
(
LPCWSTR
src
,
INT
srclen
,
LPSTR
dest
,
INT
destlen
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment