2003-04-05 00:26:34 +02:00
|
|
|
/*
|
|
|
|
* NT threads support
|
|
|
|
*
|
|
|
|
* Copyright 1996, 2003 Alexandre Julliard
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-04-05 00:26:34 +02:00
|
|
|
*/
|
|
|
|
|
2006-07-21 20:20:30 +02:00
|
|
|
#include <assert.h>
|
2008-03-01 11:57:00 +01:00
|
|
|
#include <stdarg.h>
|
2017-11-21 13:50:43 +01:00
|
|
|
#include <limits.h>
|
2003-11-04 05:50:18 +01:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
2005-11-05 11:43:50 +01:00
|
|
|
#define NONAMELESSUNION
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "ntstatus.h"
|
2005-11-28 17:32:54 +01:00
|
|
|
#define WIN32_NO_STATUS
|
2003-04-05 00:26:34 +02:00
|
|
|
#include "winternl.h"
|
|
|
|
#include "wine/server.h"
|
2003-07-09 04:57:57 +02:00
|
|
|
#include "wine/debug.h"
|
2003-11-04 05:50:18 +01:00
|
|
|
#include "ntdll_misc.h"
|
2007-05-18 18:09:03 +02:00
|
|
|
#include "ddk/wdm.h"
|
2006-03-14 15:35:21 +01:00
|
|
|
#include "wine/exception.h"
|
2003-07-09 04:57:57 +02:00
|
|
|
|
2020-06-03 16:32:02 +02:00
|
|
|
WINE_DECLARE_DEBUG_CHANNEL(relay);
|
2003-04-05 00:26:34 +02:00
|
|
|
|
2020-06-04 19:48:26 +02:00
|
|
|
struct _KUSER_SHARED_DATA *user_shared_data = (void *)0x7ffe0000;
|
2007-05-18 18:09:03 +02:00
|
|
|
|
2019-10-22 10:00:57 +02:00
|
|
|
|
2020-05-17 11:07:02 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* __wine_dbg_get_channel_flags (NTDLL.@)
|
|
|
|
*
|
|
|
|
* Get the flags to use for a given channel, possibly setting them too in case of lazy init
|
|
|
|
*/
|
|
|
|
unsigned char __cdecl __wine_dbg_get_channel_flags( struct __wine_debug_channel *channel )
|
|
|
|
{
|
|
|
|
return unix_funcs->dbg_get_channel_flags( channel );
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* __wine_dbg_strdup (NTDLL.@)
|
|
|
|
*/
|
|
|
|
const char * __cdecl __wine_dbg_strdup( const char *str )
|
|
|
|
{
|
|
|
|
return unix_funcs->dbg_strdup( str );
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* __wine_dbg_header (NTDLL.@)
|
|
|
|
*/
|
|
|
|
int __cdecl __wine_dbg_header( enum __wine_debug_class cls, struct __wine_debug_channel *channel,
|
|
|
|
const char *function )
|
|
|
|
{
|
|
|
|
return unix_funcs->dbg_header( cls, channel, function );
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* __wine_dbg_output (NTDLL.@)
|
|
|
|
*/
|
|
|
|
int __cdecl __wine_dbg_output( const char *str )
|
|
|
|
{
|
|
|
|
return unix_funcs->dbg_output( str );
|
|
|
|
}
|
|
|
|
|
2019-10-22 10:00:57 +02:00
|
|
|
|
2009-02-20 11:23:08 +01:00
|
|
|
/***********************************************************************
|
2017-12-14 10:54:56 +01:00
|
|
|
* RtlExitUserThread (NTDLL.@)
|
2009-02-20 11:23:08 +01:00
|
|
|
*/
|
2017-12-14 10:54:56 +01:00
|
|
|
void WINAPI RtlExitUserThread( ULONG status )
|
2009-02-20 11:23:08 +01:00
|
|
|
{
|
2020-06-29 12:09:25 +02:00
|
|
|
ULONG last;
|
|
|
|
|
2009-06-18 16:50:34 +02:00
|
|
|
if (status) /* send the exit code to the server (0 is already the default) */
|
|
|
|
{
|
|
|
|
SERVER_START_REQ( terminate_thread )
|
|
|
|
{
|
|
|
|
req->handle = wine_server_obj_handle( GetCurrentThread() );
|
|
|
|
req->exit_code = status;
|
|
|
|
wine_server_call( req );
|
|
|
|
}
|
|
|
|
SERVER_END_REQ;
|
|
|
|
}
|
|
|
|
|
2020-06-29 12:09:25 +02:00
|
|
|
NtQueryInformationThread( GetCurrentThread(), ThreadAmILastThread, &last, sizeof(last), NULL );
|
|
|
|
if (last)
|
2009-06-18 16:50:34 +02:00
|
|
|
{
|
|
|
|
LdrShutdownProcess();
|
2020-06-01 12:52:05 +02:00
|
|
|
unix_funcs->exit_process( status );
|
2009-06-18 16:50:34 +02:00
|
|
|
}
|
|
|
|
LdrShutdownThread();
|
2014-06-22 03:27:31 +02:00
|
|
|
RtlFreeThreadActivationContextStack();
|
2020-06-01 12:52:05 +02:00
|
|
|
for (;;) unix_funcs->exit_thread( status );
|
2009-02-20 11:23:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-06-03 16:32:02 +02:00
|
|
|
/***********************************************************************
|
2020-06-05 16:37:49 +02:00
|
|
|
* RtlUserThreadStart (NTDLL.@)
|
2020-06-03 16:32:02 +02:00
|
|
|
*/
|
|
|
|
#ifdef __i386__
|
2020-06-05 16:37:49 +02:00
|
|
|
__ASM_STDCALL_FUNC( RtlUserThreadStart, 8,
|
2020-06-03 16:32:02 +02:00
|
|
|
"pushl %ebp\n\t"
|
|
|
|
__ASM_CFI(".cfi_adjust_cfa_offset 4\n\t")
|
|
|
|
__ASM_CFI(".cfi_rel_offset %ebp,0\n\t")
|
|
|
|
"movl %esp,%ebp\n\t"
|
|
|
|
__ASM_CFI(".cfi_def_cfa_register %ebp\n\t")
|
|
|
|
"pushl %ebx\n\t" /* arg */
|
|
|
|
"pushl %eax\n\t" /* entry */
|
|
|
|
"call " __ASM_NAME("call_thread_func") )
|
|
|
|
|
|
|
|
/* wrapper for apps that don't declare the thread function correctly */
|
2020-06-05 16:37:49 +02:00
|
|
|
extern DWORD call_thread_func_wrapper( PRTL_THREAD_START_ROUTINE entry, void *arg );
|
2020-06-03 16:32:02 +02:00
|
|
|
__ASM_GLOBAL_FUNC(call_thread_func_wrapper,
|
|
|
|
"pushl %ebp\n\t"
|
|
|
|
__ASM_CFI(".cfi_adjust_cfa_offset 4\n\t")
|
|
|
|
__ASM_CFI(".cfi_rel_offset %ebp,0\n\t")
|
|
|
|
"movl %esp,%ebp\n\t"
|
|
|
|
__ASM_CFI(".cfi_def_cfa_register %ebp\n\t")
|
|
|
|
"subl $4,%esp\n\t"
|
|
|
|
"pushl 12(%ebp)\n\t"
|
|
|
|
"call *8(%ebp)\n\t"
|
|
|
|
"leave\n\t"
|
|
|
|
__ASM_CFI(".cfi_def_cfa %esp,4\n\t")
|
|
|
|
__ASM_CFI(".cfi_same_value %ebp\n\t")
|
|
|
|
"ret" )
|
|
|
|
|
2020-06-05 16:37:49 +02:00
|
|
|
void DECLSPEC_HIDDEN call_thread_func( PRTL_THREAD_START_ROUTINE entry, void *arg )
|
2020-06-03 16:32:02 +02:00
|
|
|
{
|
|
|
|
__TRY
|
|
|
|
{
|
|
|
|
TRACE_(relay)( "\1Starting thread proc %p (arg=%p)\n", entry, arg );
|
|
|
|
RtlExitUserThread( call_thread_func_wrapper( entry, arg ));
|
|
|
|
}
|
|
|
|
__EXCEPT(call_unhandled_exception_filter)
|
|
|
|
{
|
|
|
|
NtTerminateThread( GetCurrentThread(), GetExceptionCode() );
|
|
|
|
}
|
|
|
|
__ENDTRY
|
|
|
|
}
|
|
|
|
|
|
|
|
#else /* __i386__ */
|
|
|
|
|
2020-06-05 16:37:49 +02:00
|
|
|
void WINAPI RtlUserThreadStart( PRTL_THREAD_START_ROUTINE entry, void *arg )
|
2020-06-03 16:32:02 +02:00
|
|
|
{
|
|
|
|
__TRY
|
|
|
|
{
|
|
|
|
TRACE_(relay)( "\1Starting thread proc %p (arg=%p)\n", entry, arg );
|
2020-06-05 16:37:49 +02:00
|
|
|
RtlExitUserThread( ((LPTHREAD_START_ROUTINE)entry)( arg ));
|
2020-06-03 16:32:02 +02:00
|
|
|
}
|
|
|
|
__EXCEPT(call_unhandled_exception_filter)
|
|
|
|
{
|
|
|
|
NtTerminateThread( GetCurrentThread(), GetExceptionCode() );
|
|
|
|
}
|
|
|
|
__ENDTRY
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* __i386__ */
|
|
|
|
|
|
|
|
|
2018-03-06 04:10:30 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* NtCreateThreadEx (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtCreateThreadEx( HANDLE *handle_ptr, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr,
|
2020-06-05 15:09:27 +02:00
|
|
|
HANDLE process, PRTL_THREAD_START_ROUTINE start, void *param,
|
|
|
|
ULONG flags, SIZE_T zero_bits, SIZE_T stack_commit,
|
|
|
|
SIZE_T stack_reserve, PS_ATTRIBUTE_LIST *attr_list )
|
2018-03-06 04:10:30 +01:00
|
|
|
{
|
2020-06-05 16:37:49 +02:00
|
|
|
return unix_funcs->NtCreateThreadEx( handle_ptr, access, attr, process, start, param,
|
|
|
|
flags, zero_bits, stack_commit, stack_reserve, attr_list );
|
2018-03-06 04:10:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-10-31 01:16:20 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* RtlCreateUserThread (NTDLL.@)
|
|
|
|
*/
|
2018-09-20 13:06:12 +02:00
|
|
|
NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, SECURITY_DESCRIPTOR *descr,
|
2003-10-31 01:16:20 +01:00
|
|
|
BOOLEAN suspended, PVOID stack_addr,
|
|
|
|
SIZE_T stack_reserve, SIZE_T stack_commit,
|
|
|
|
PRTL_THREAD_START_ROUTINE start, void *param,
|
|
|
|
HANDLE *handle_ptr, CLIENT_ID *id )
|
|
|
|
{
|
2020-06-05 14:09:19 +02:00
|
|
|
ULONG flags = suspended ? THREAD_CREATE_FLAGS_CREATE_SUSPENDED : 0;
|
|
|
|
HANDLE handle;
|
2003-10-31 01:16:20 +01:00
|
|
|
NTSTATUS status;
|
2020-06-05 14:09:19 +02:00
|
|
|
CLIENT_ID client_id;
|
|
|
|
OBJECT_ATTRIBUTES attr;
|
2020-06-05 15:09:27 +02:00
|
|
|
PS_ATTRIBUTE_LIST attr_list = { sizeof(attr_list) };
|
|
|
|
|
|
|
|
attr_list.Attributes[0].Attribute = PS_ATTRIBUTE_CLIENT_ID;
|
|
|
|
attr_list.Attributes[0].Size = sizeof(client_id);
|
|
|
|
attr_list.Attributes[0].ValuePtr = &client_id;
|
2003-10-31 01:16:20 +01:00
|
|
|
|
2020-06-05 14:09:19 +02:00
|
|
|
InitializeObjectAttributes( &attr, NULL, 0, NULL, descr );
|
2009-11-19 12:25:52 +01:00
|
|
|
|
2020-06-05 15:09:27 +02:00
|
|
|
status = NtCreateThreadEx( &handle, THREAD_ALL_ACCESS, &attr, process, start, param,
|
|
|
|
flags, 0, stack_commit, stack_reserve, &attr_list );
|
2020-06-05 14:09:19 +02:00
|
|
|
if (!status)
|
2003-10-31 01:16:20 +01:00
|
|
|
{
|
2020-06-05 14:09:19 +02:00
|
|
|
if (id) *id = client_id;
|
|
|
|
if (handle_ptr) *handle_ptr = handle;
|
|
|
|
else NtClose( handle );
|
2003-10-31 01:16:20 +01:00
|
|
|
}
|
2020-06-05 14:09:19 +02:00
|
|
|
return status;
|
2003-10-31 01:16:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-01-22 12:32:40 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* RtlGetNtGlobalFlags (NTDLL.@)
|
|
|
|
*/
|
|
|
|
ULONG WINAPI RtlGetNtGlobalFlags(void)
|
|
|
|
{
|
2020-06-29 12:19:13 +02:00
|
|
|
return NtCurrentTeb()->Peb->NtGlobalFlag;
|
2010-01-22 12:32:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-04-05 00:26:34 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* NtOpenThread (NTDLL.@)
|
|
|
|
* ZwOpenThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtOpenThread( HANDLE *handle, ACCESS_MASK access,
|
|
|
|
const OBJECT_ATTRIBUTES *attr, const CLIENT_ID *id )
|
|
|
|
{
|
2020-06-09 12:34:37 +02:00
|
|
|
return unix_funcs->NtOpenThread( handle, access, attr, id );
|
2003-04-05 00:26:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtSuspendThread (NTDLL.@)
|
|
|
|
* ZwSuspendThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtSuspendThread( HANDLE handle, PULONG count )
|
|
|
|
{
|
2020-06-09 12:34:37 +02:00
|
|
|
return unix_funcs->NtSuspendThread( handle, count );
|
2003-04-05 00:26:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtResumeThread (NTDLL.@)
|
|
|
|
* ZwResumeThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtResumeThread( HANDLE handle, PULONG count )
|
|
|
|
{
|
2020-06-09 12:34:37 +02:00
|
|
|
return unix_funcs->NtResumeThread( handle, count );
|
2003-04-05 00:26:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-08-18 13:47:17 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* NtAlertResumeThread (NTDLL.@)
|
|
|
|
* ZwAlertResumeThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtAlertResumeThread( HANDLE handle, PULONG count )
|
|
|
|
{
|
2020-06-09 12:34:37 +02:00
|
|
|
return unix_funcs->NtAlertResumeThread( handle, count );
|
2005-08-18 13:47:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtAlertThread (NTDLL.@)
|
|
|
|
* ZwAlertThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtAlertThread( HANDLE handle )
|
|
|
|
{
|
2020-06-09 12:34:37 +02:00
|
|
|
return unix_funcs->NtAlertThread( handle );
|
2005-08-18 13:47:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-04-05 00:26:34 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* NtTerminateThread (NTDLL.@)
|
|
|
|
* ZwTerminateThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtTerminateThread( HANDLE handle, LONG exit_code )
|
|
|
|
{
|
2020-06-09 12:34:37 +02:00
|
|
|
return unix_funcs->NtTerminateThread( handle, exit_code );
|
2003-04-05 00:26:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQueueApcThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtQueueApcThread( HANDLE handle, PNTAPCFUNC func, ULONG_PTR arg1,
|
|
|
|
ULONG_PTR arg2, ULONG_PTR arg3 )
|
|
|
|
{
|
2020-06-09 12:34:37 +02:00
|
|
|
return unix_funcs->NtQueueApcThread( handle, func, arg1, arg2, arg3 );
|
2003-04-05 00:26:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-01-22 16:25:22 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* RtlPushFrame (NTDLL.@)
|
|
|
|
*/
|
|
|
|
void WINAPI RtlPushFrame( TEB_ACTIVE_FRAME *frame )
|
|
|
|
{
|
|
|
|
frame->Previous = NtCurrentTeb()->ActiveFrame;
|
|
|
|
NtCurrentTeb()->ActiveFrame = frame;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* RtlPopFrame (NTDLL.@)
|
|
|
|
*/
|
|
|
|
void WINAPI RtlPopFrame( TEB_ACTIVE_FRAME *frame )
|
|
|
|
{
|
|
|
|
NtCurrentTeb()->ActiveFrame = frame->Previous;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* RtlGetFrame (NTDLL.@)
|
|
|
|
*/
|
|
|
|
TEB_ACTIVE_FRAME * WINAPI RtlGetFrame(void)
|
|
|
|
{
|
|
|
|
return NtCurrentTeb()->ActiveFrame;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-06-06 15:16:38 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* NtContinue (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtContinue( CONTEXT *context, BOOLEAN alertable )
|
|
|
|
{
|
|
|
|
return unix_funcs->NtContinue( context, alertable );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-06-02 13:11:54 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* NtSetContextThread (NTDLL.@)
|
|
|
|
* ZwSetContextThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
|
|
|
|
{
|
|
|
|
return unix_funcs->NtSetContextThread( handle, context );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-06-02 14:05:42 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* NtGetContextThread (NTDLL.@)
|
|
|
|
* ZwGetContextThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
#ifndef __i386__
|
|
|
|
NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context )
|
|
|
|
{
|
|
|
|
return unix_funcs->NtGetContextThread( handle, context );
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2020-06-01 12:52:05 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* NtSetLdtEntries (NTDLL.@)
|
|
|
|
* ZwSetLdtEntries (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtSetLdtEntries( ULONG sel1, LDT_ENTRY entry1, ULONG sel2, LDT_ENTRY entry2 )
|
|
|
|
{
|
|
|
|
return unix_funcs->NtSetLdtEntries( sel1, entry1, sel2, entry2 );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-07-09 04:57:57 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* NtQueryInformationThread (NTDLL.@)
|
|
|
|
* ZwQueryInformationThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
|
|
|
|
void *data, ULONG length, ULONG *ret_len )
|
|
|
|
{
|
2020-06-18 12:37:50 +02:00
|
|
|
return unix_funcs->NtQueryInformationThread( handle, class, data, length, ret_len );
|
2003-07-09 04:57:57 +02:00
|
|
|
}
|
2003-09-08 21:02:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtSetInformationThread (NTDLL.@)
|
|
|
|
* ZwSetInformationThread (NTDLL.@)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
|
|
|
|
LPCVOID data, ULONG length )
|
|
|
|
{
|
2020-06-18 12:37:50 +02:00
|
|
|
return unix_funcs->NtSetInformationThread( handle, class, data, length );
|
2003-09-08 21:02:01 +02:00
|
|
|
}
|
2012-05-17 19:28:31 +02:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtGetCurrentProcessorNumber (NTDLL.@)
|
|
|
|
*
|
|
|
|
* Return the processor, on which the thread is running
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
ULONG WINAPI NtGetCurrentProcessorNumber(void)
|
|
|
|
{
|
2020-06-18 12:37:50 +02:00
|
|
|
return unix_funcs->NtGetCurrentProcessorNumber();
|
2012-05-17 19:28:31 +02:00
|
|
|
}
|