mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 19:07:20 +00:00
ntdll: Implement RtlIsCurrentProcess/Thread.
This commit is contained in:
parent
a5ff427acb
commit
959dea0c09
|
@ -835,6 +835,8 @@
|
|||
@ stdcall RtlIsActivationContextActive(ptr)
|
||||
@ stdcall RtlIsCriticalSectionLocked(ptr)
|
||||
@ stdcall RtlIsCriticalSectionLockedByThread(ptr)
|
||||
@ stdcall RtlIsCurrentProcess(long)
|
||||
@ stdcall RtlIsCurrentThread(long)
|
||||
@ stdcall RtlIsDosDeviceName_U(wstr)
|
||||
@ stdcall -arch=x86_64 -norelay RtlIsEcCode(ptr)
|
||||
@ stub RtlIsGenericTableEmpty
|
||||
|
|
|
@ -49,6 +49,15 @@ PEB * WINAPI RtlGetCurrentPeb(void)
|
|||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* RtlIsCurrentProcess (NTDLL.@)
|
||||
*/
|
||||
BOOLEAN WINAPI RtlIsCurrentProcess( HANDLE handle )
|
||||
{
|
||||
return handle == NtCurrentProcess() || !NtCompareObjects( handle, NtCurrentProcess() );
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************
|
||||
* RtlWow64EnableFsRedirection (NTDLL.@)
|
||||
*/
|
||||
|
|
|
@ -463,6 +463,15 @@ TEB_ACTIVE_FRAME * WINAPI RtlGetFrame(void)
|
|||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* RtlIsCurrentThread (NTDLL.@)
|
||||
*/
|
||||
BOOLEAN WINAPI RtlIsCurrentThread( HANDLE handle )
|
||||
{
|
||||
return handle == NtCurrentThread() || !NtCompareObjects( handle, NtCurrentThread() );
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* _errno (NTDLL.@)
|
||||
*/
|
||||
|
|
|
@ -4650,6 +4650,8 @@ NTSYSAPI NTSTATUS WINAPI RtlIntegerToUnicodeString(ULONG,ULONG,UNICODE_STRING *
|
|||
NTSYSAPI BOOLEAN WINAPI RtlIsActivationContextActive(HANDLE);
|
||||
NTSYSAPI BOOL WINAPI RtlIsCriticalSectionLocked(RTL_CRITICAL_SECTION *);
|
||||
NTSYSAPI BOOL WINAPI RtlIsCriticalSectionLockedByThread(RTL_CRITICAL_SECTION *);
|
||||
NTSYSAPI BOOLEAN WINAPI RtlIsCurrentProcess(HANDLE);
|
||||
NTSYSAPI BOOLEAN WINAPI RtlIsCurrentThread(HANDLE);
|
||||
NTSYSAPI ULONG WINAPI RtlIsDosDeviceName_U(PCWSTR);
|
||||
#ifdef __x86_64__
|
||||
NTSYSAPI BOOLEAN WINAPI RtlIsEcCode(const void*);
|
||||
|
|
Loading…
Reference in a new issue