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
8296548b
Commit
8296548b
authored
Nov 12, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement GetThreadId.
parent
93d87ca3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-0
thread.c
dlls/kernel32/thread.c
+30
-0
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
8296548b
...
...
@@ -629,6 +629,7 @@
@ stdcall GetTempPathA(long ptr)
@ stdcall GetTempPathW(long ptr)
@ stdcall GetThreadContext(long ptr)
@ stdcall GetThreadId(ptr)
# @ stub GetThreadIOPendingFlag
@ stdcall GetThreadLocale()
@ stdcall GetThreadPriority(long)
...
...
dlls/kernel32/thread.c
View file @
8296548b
...
...
@@ -518,6 +518,36 @@ BOOL WINAPI GetThreadTimes(
return
TRUE
;
}
/**********************************************************************
* GetThreadId [KERNEL32.@]
*
* Retrieve the identifier of a thread.
*
* PARAMS
* Thread [I] The thread to retrive the identifier of.
*
* RETURNS
* Success: Identifier of the target thread.
* Failure: 0
*/
DWORD
WINAPI
GetThreadId
(
HANDLE
Thread
)
{
THREAD_BASIC_INFORMATION
tbi
;
NTSTATUS
status
;
TRACE
(
"(%p)
\n
"
,
Thread
);
status
=
NtQueryInformationThread
(
Thread
,
ThreadBasicInformation
,
&
tbi
,
sizeof
(
tbi
),
NULL
);
if
(
status
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
0
;
}
return
HandleToULong
(
tbi
.
ClientId
.
UniqueThread
);
}
/**********************************************************************
* VWin32_BoostThreadGroup [KERNEL.535]
...
...
include/winbase.h
View file @
8296548b
...
...
@@ -1682,6 +1682,7 @@ WINBASEAPI UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
WINBASEAPI
DWORD
WINAPI
GetTempPathA
(
DWORD
,
LPSTR
);
WINBASEAPI
DWORD
WINAPI
GetTempPathW
(
DWORD
,
LPWSTR
);
#define GetTempPath WINELIB_NAME_AW(GetTempPath)
WINBASEAPI
DWORD
WINAPI
GetThreadId
(
HANDLE
);
WINBASEAPI
DWORD
WINAPI
GetTickCount
(
void
);
WINBASEAPI
ULONGLONG
WINAPI
GetTickCount64
(
void
);
WINBASEAPI
DWORD
WINAPI
GetTimeZoneInformation
(
LPTIME_ZONE_INFORMATION
);
...
...
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