Struct ntapi::ntpebteb::TEB

source ·
#[repr(C)]
pub struct TEB {
Show 96 fields pub NtTib: NT_TIB, pub EnvironmentPointer: PVOID, pub ClientId: CLIENT_ID, pub ActiveRpcHandle: PVOID, pub ThreadLocalStoragePointer: PVOID, pub ProcessEnvironmentBlock: PPEB, pub LastErrorValue: ULONG, pub CountOfOwnedCriticalSections: ULONG, pub CsrClientThread: PVOID, pub Win32ThreadInfo: PVOID, pub User32Reserved: [ULONG; 26], pub UserReserved: [ULONG; 5], pub WOW32Reserved: PVOID, pub CurrentLocale: LCID, pub FpSoftwareStatusRegister: ULONG, pub ReservedForDebuggerInstrumentation: [PVOID; 16], pub SystemReserved1: [PVOID; 30], pub PlaceholderCompatibilityMode: CHAR, pub PlaceholderReserved: [CHAR; 11], pub ProxiedProcessId: ULONG, pub ActivationStack: ACTIVATION_CONTEXT_STACK, pub WorkingOnBehalfTicket: [UCHAR; 8], pub ExceptionCode: NTSTATUS, pub ActivationContextStackPointer: PACTIVATION_CONTEXT_STACK, pub InstrumentationCallbackSp: ULONG_PTR, pub InstrumentationCallbackPreviousPc: ULONG_PTR, pub InstrumentationCallbackPreviousSp: ULONG_PTR, pub TxFsContext: ULONG, pub InstrumentationCallbackDisabled: BOOLEAN, pub GdiTebBatch: GDI_TEB_BATCH, pub RealClientId: CLIENT_ID, pub GdiCachedProcessHandle: HANDLE, pub GdiClientPID: ULONG, pub GdiClientTID: ULONG, pub GdiThreadLocalInfo: PVOID, pub Win32ClientInfo: [ULONG_PTR; 62], pub glDispatchTable: [PVOID; 233], pub glReserved1: [ULONG_PTR; 29], pub glReserved2: PVOID, pub glSectionInfo: PVOID, pub glSection: PVOID, pub glTable: PVOID, pub glCurrentRC: PVOID, pub glContext: PVOID, pub LastStatusValue: NTSTATUS, pub StaticUnicodeString: UNICODE_STRING, pub StaticUnicodeBuffer: [WCHAR; 261], pub DeallocationStack: PVOID, pub TlsSlots: [PVOID; 64], pub TlsLinks: LIST_ENTRY, pub Vdm: PVOID, pub ReservedForNtRpc: PVOID, pub DbgSsReserved: [PVOID; 2], pub HardErrorMode: ULONG, pub Instrumentation: [PVOID; 11], pub ActivityId: GUID, pub SubProcessTag: PVOID, pub PerflibData: PVOID, pub EtwTraceData: PVOID, pub WinSockData: PVOID, pub GdiBatchCount: ULONG, pub u: TEB_u, pub GuaranteedStackBytes: ULONG, pub ReservedForPerf: PVOID, pub ReservedForOle: PVOID, pub WaitingOnLoaderLock: ULONG, pub SavedPriorityState: PVOID, pub ReservedForCodeCoverage: ULONG_PTR, pub ThreadPoolData: PVOID, pub TlsExpansionSlots: *mut PVOID, pub DeallocationBStore: PVOID, pub BStoreLimit: PVOID, pub MuiGeneration: ULONG, pub IsImpersonating: ULONG, pub NlsCache: PVOID, pub pShimData: PVOID, pub HeapVirtualAffinity: USHORT, pub LowFragHeapDataSlot: USHORT, pub CurrentTransactionHandle: HANDLE, pub ActiveFrame: PTEB_ACTIVE_FRAME, pub FlsData: PVOID, pub PreferredLanguages: PVOID, pub UserPrefLanguages: PVOID, pub MergedPrefLanguages: PVOID, pub MuiImpersonation: ULONG, pub CrossTebFlags: USHORT, pub SameTebFlags: USHORT, pub TxnScopeEnterCallback: PVOID, pub TxnScopeExitCallback: PVOID, pub TxnScopeContext: PVOID, pub LockCount: ULONG, pub WowTebOffset: LONG, pub ResourceRetValue: PVOID, pub ReservedForWdf: PVOID, pub ReservedForCrt: ULONGLONG, pub EffectiveContainerId: GUID,
}

Fields§

§NtTib: NT_TIB§EnvironmentPointer: PVOID§ClientId: CLIENT_ID§ActiveRpcHandle: PVOID§ThreadLocalStoragePointer: PVOID§ProcessEnvironmentBlock: PPEB§LastErrorValue: ULONG§CountOfOwnedCriticalSections: ULONG§CsrClientThread: PVOID§Win32ThreadInfo: PVOID§User32Reserved: [ULONG; 26]§UserReserved: [ULONG; 5]§WOW32Reserved: PVOID§CurrentLocale: LCID§FpSoftwareStatusRegister: ULONG§ReservedForDebuggerInstrumentation: [PVOID; 16]§SystemReserved1: [PVOID; 30]§PlaceholderCompatibilityMode: CHAR§PlaceholderReserved: [CHAR; 11]§ProxiedProcessId: ULONG§ActivationStack: ACTIVATION_CONTEXT_STACK§WorkingOnBehalfTicket: [UCHAR; 8]§ExceptionCode: NTSTATUS§ActivationContextStackPointer: PACTIVATION_CONTEXT_STACK§InstrumentationCallbackSp: ULONG_PTR§InstrumentationCallbackPreviousPc: ULONG_PTR§InstrumentationCallbackPreviousSp: ULONG_PTR§TxFsContext: ULONG§InstrumentationCallbackDisabled: BOOLEAN§GdiTebBatch: GDI_TEB_BATCH§RealClientId: CLIENT_ID§GdiCachedProcessHandle: HANDLE§GdiClientPID: ULONG§GdiClientTID: ULONG§GdiThreadLocalInfo: PVOID§Win32ClientInfo: [ULONG_PTR; 62]§glDispatchTable: [PVOID; 233]§glReserved1: [ULONG_PTR; 29]§glReserved2: PVOID§glSectionInfo: PVOID§glSection: PVOID§glTable: PVOID§glCurrentRC: PVOID§glContext: PVOID§LastStatusValue: NTSTATUS§StaticUnicodeString: UNICODE_STRING§StaticUnicodeBuffer: [WCHAR; 261]§DeallocationStack: PVOID§TlsSlots: [PVOID; 64]§TlsLinks: LIST_ENTRY§Vdm: PVOID§ReservedForNtRpc: PVOID§DbgSsReserved: [PVOID; 2]§HardErrorMode: ULONG§Instrumentation: [PVOID; 11]§ActivityId: GUID§SubProcessTag: PVOID§PerflibData: PVOID§EtwTraceData: PVOID§WinSockData: PVOID§GdiBatchCount: ULONG§u: TEB_u§GuaranteedStackBytes: ULONG§ReservedForPerf: PVOID§ReservedForOle: PVOID§WaitingOnLoaderLock: ULONG§SavedPriorityState: PVOID§ReservedForCodeCoverage: ULONG_PTR§ThreadPoolData: PVOID§TlsExpansionSlots: *mut PVOID§DeallocationBStore: PVOID§BStoreLimit: PVOID§MuiGeneration: ULONG§IsImpersonating: ULONG§NlsCache: PVOID§pShimData: PVOID§HeapVirtualAffinity: USHORT§LowFragHeapDataSlot: USHORT§CurrentTransactionHandle: HANDLE§ActiveFrame: PTEB_ACTIVE_FRAME§FlsData: PVOID§PreferredLanguages: PVOID§UserPrefLanguages: PVOID§MergedPrefLanguages: PVOID§MuiImpersonation: ULONG§CrossTebFlags: USHORT§SameTebFlags: USHORT§TxnScopeEnterCallback: PVOID§TxnScopeExitCallback: PVOID§TxnScopeContext: PVOID§LockCount: ULONG§WowTebOffset: LONG§ResourceRetValue: PVOID§ReservedForWdf: PVOID§ReservedForCrt: ULONGLONG§EffectiveContainerId: GUID

Implementations§

source§

impl TEB

source

pub const fn SafeThunkCall(&self) -> USHORT

source

pub fn set_SafeThunkCall(&mut self, val: USHORT)

source

pub const fn InDebugPrint(&self) -> USHORT

source

pub fn set_InDebugPrint(&mut self, val: USHORT)

source

pub const fn HasFiberData(&self) -> USHORT

source

pub fn set_HasFiberData(&mut self, val: USHORT)

source

pub const fn SkipThreadAttach(&self) -> USHORT

source

pub fn set_SkipThreadAttach(&mut self, val: USHORT)

source

pub const fn WerInShipAssertCode(&self) -> USHORT

source

pub fn set_WerInShipAssertCode(&mut self, val: USHORT)

source

pub const fn RanProcessInit(&self) -> USHORT

source

pub fn set_RanProcessInit(&mut self, val: USHORT)

source

pub const fn ClonedThread(&self) -> USHORT

source

pub fn set_ClonedThread(&mut self, val: USHORT)

source

pub const fn SuppressDebugMsg(&self) -> USHORT

source

pub fn set_SuppressDebugMsg(&mut self, val: USHORT)

source

pub const fn DisableUserStackWalk(&self) -> USHORT

source

pub fn set_DisableUserStackWalk(&mut self, val: USHORT)

source

pub const fn RtlExceptionAttached(&self) -> USHORT

source

pub fn set_RtlExceptionAttached(&mut self, val: USHORT)

source

pub const fn InitialThread(&self) -> USHORT

source

pub fn set_InitialThread(&mut self, val: USHORT)

source

pub const fn SessionAware(&self) -> USHORT

source

pub fn set_SessionAware(&mut self, val: USHORT)

source

pub const fn LoadOwner(&self) -> USHORT

source

pub fn set_LoadOwner(&mut self, val: USHORT)

source

pub const fn LoaderWorker(&self) -> USHORT

source

pub fn set_LoaderWorker(&mut self, val: USHORT)

source

pub const fn SkipLoaderInit(&self) -> USHORT

source

pub fn set_SkipLoaderInit(&mut self, val: USHORT)

source

pub const fn SpareSameTebBits(&self) -> USHORT

source

pub fn set_SpareSameTebBits(&mut self, val: USHORT)

Trait Implementations§

source§

impl Clone for TEB

source§

fn clone(&self) -> TEB

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for TEB

Auto Trait Implementations§

§

impl RefUnwindSafe for TEB

§

impl !Send for TEB

§

impl !Sync for TEB

§

impl Unpin for TEB

§

impl UnwindSafe for TEB

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.