mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:33:20 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
29
sdk/include/ndk/inline_ntcurrentteb.h
Normal file
29
sdk/include/ndk/inline_ntcurrentteb.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#ifndef _INLINE_NT_CURRENTTEB_H_
|
||||
#define _INLINE_NT_CURRENTTEB_H_
|
||||
|
||||
#if defined(_M_IX86)
|
||||
FORCEINLINE struct _TEB * NtCurrentTeb(void)
|
||||
{
|
||||
return (struct _TEB *)__readfsdword(0x18);
|
||||
}
|
||||
#elif defined(_M_ARM)
|
||||
FORCEINLINE struct _TEB * NtCurrentTeb(void)
|
||||
{
|
||||
__debugbreak();
|
||||
return (struct _TEB *)0;
|
||||
}
|
||||
#elif defined(_M_AMD64)
|
||||
FORCEINLINE struct _TEB * NtCurrentTeb(void)
|
||||
{
|
||||
return (struct _TEB *)__readgsqword(FIELD_OFFSET(NT_TIB, Self));
|
||||
}
|
||||
#elif defined(_M_PPC)
|
||||
FORCEINLINE struct _TEB * NtCurrentTeb(void)
|
||||
{
|
||||
return (struct _TEB *)__readfsdword_winnt(0x18);
|
||||
}
|
||||
#else
|
||||
#error Unsupported architecture
|
||||
#endif
|
||||
|
||||
#endif//_INLINE_NT_CURRENTTEB_H_
|
Loading…
Add table
Add a link
Reference in a new issue