Struct windows_native::ntpebteb::TEB

source ยท
#[repr(C)]
pub struct TEB {
Show 100 fields pub NtTib: NT_TIB, pub EnvironmentPointer: *mut c_void, pub ClientId: CLIENT_ID, pub ActiveRpcHandle: *mut c_void, pub ThreadLocalStoragePointer: *mut c_void, pub ProcessEnvironmentBlock: *mut PEB, pub LastErrorValue: u32, pub CountOfOwnedCriticalSections: u32, pub CsrClientThread: *mut c_void, pub Win32ThreadInfo: *mut c_void, pub User32Reserved: [u32; 26], pub UserReserved: [u32; 5], pub WOW32Reserved: *mut c_void, pub CurrentLocale: u32, pub FpSoftwareStatusRegister: u32, pub ReservedForDebuggerInstrumentation: [*mut c_void; 16], pub SystemReserved1: [*mut c_void; 30], pub PlaceholderCompatibilityMode: i8, pub PlaceholderHydrationAlwaysExplicit: BOOLEAN, pub PlaceholderReserved: [i8; 10], pub ProxiedProcessId: u32, pub ActivationStack: ACTIVATION_CONTEXT_STACK, pub WorkingOnBehalfTicket: [u8; 8], pub ExceptionCode: NTSTATUS, pub ActivationContextStackPointer: *mut ACTIVATION_CONTEXT_STACK, pub InstrumentationCallbackSp: usize, pub InstrumentationCallbackPreviousPc: usize, pub InstrumentationCallbackPreviousSp: usize, pub TxFsContext: u32, pub InstrumentationCallbackDisabled: BOOLEAN, pub UnalignedLoadStoreExceptions: BOOLEAN, pub GdiTebBatch: GDI_TEB_BATCH, pub RealClientId: CLIENT_ID, pub GdiCachedProcessHandle: HANDLE, pub GdiClientPID: u32, pub GdiClientTID: u32, pub GdiThreadLocalInfo: *mut c_void, pub Win32ClientInfo: [usize; 62], pub glDispatchTable: [*mut c_void; 233], pub glReserved1: [usize; 29], pub glReserved2: *mut c_void, pub glSectionInfo: *mut c_void, pub glSection: *mut c_void, pub glTable: *mut c_void, pub glCurrentRC: *mut c_void, pub glContext: *mut c_void, pub LastStatusValue: NTSTATUS, pub StaticUnicodeString: UNICODE_STRING, pub StaticUnicodeBuffer: [u16; 261], pub DeallocationStack: *mut c_void, pub TlsSlots: [*mut c_void; 64], pub TlsLinks: LIST_ENTRY, pub Vdm: *mut c_void, pub ReservedForNtRpc: *mut c_void, pub DbgSsReserved: [*mut c_void; 2], pub HardErrorMode: u32, pub Instrumentation: [*mut c_void; 11], pub ActivityId: GUID, pub SubProcessTag: *mut c_void, pub PerflibData: *mut c_void, pub EtwTraceData: *mut c_void, pub WinSockData: *mut c_void, pub GdiBatchCount: u32, pub Anonymous1: TEB_1, pub GuaranteedStackBytes: u32, pub ReservedForPerf: *mut c_void, pub ReservedForOle: *mut c_void, pub WaitingOnLoaderLock: u32, pub SavedPriorityState: *mut c_void, pub ReservedForCodeCoverage: usize, pub ThreadPoolData: *mut c_void, pub TlsExpansionSlots: *mut *mut c_void, pub DeallocationBStore: *mut c_void, pub BStoreLimit: *mut c_void, pub MuiGeneration: u32, pub IsImpersonating: u32, pub NlsCache: *mut c_void, pub pShimData: *mut c_void, pub HeapData: u32, pub CurrentTransactionHandle: HANDLE, pub ActiveFrame: *mut TEB_ACTIVE_FRAME, pub FlsData: *mut c_void, pub PreferredLanguages: *mut c_void, pub UserPrefLanguages: *mut c_void, pub MergedPrefLanguages: *mut c_void, pub MuiImpersonation: u32, pub Anonymous2: TEB_2, pub Anonymous3: TEB_3, pub TxnScopeEnterCallback: *mut c_void, pub TxnScopeExitCallback: *mut c_void, pub TxnScopeContext: *mut c_void, pub LockCount: u32, pub WowTebOffset: i32, pub ResourceRetValue: *mut c_void, pub ReservedForWdf: *mut c_void, pub ReservedForCrt: u64, pub EffectiveContainerId: GUID, pub LastSleepCounter: u64, pub SpinCallCount: u32, pub ExtendedFeatureDisableMask: u64,
}

Fieldsยง

ยงNtTib: NT_TIBยงEnvironmentPointer: *mut c_voidยงClientId: CLIENT_IDยงActiveRpcHandle: *mut c_voidยงThreadLocalStoragePointer: *mut c_voidยงProcessEnvironmentBlock: *mut PEBยงLastErrorValue: u32ยงCountOfOwnedCriticalSections: u32ยงCsrClientThread: *mut c_voidยงWin32ThreadInfo: *mut c_voidยงUser32Reserved: [u32; 26]ยงUserReserved: [u32; 5]ยงWOW32Reserved: *mut c_voidยงCurrentLocale: u32ยงFpSoftwareStatusRegister: u32ยงReservedForDebuggerInstrumentation: [*mut c_void; 16]ยงSystemReserved1: [*mut c_void; 30]ยงPlaceholderCompatibilityMode: i8ยงPlaceholderHydrationAlwaysExplicit: BOOLEANยงPlaceholderReserved: [i8; 10]ยงProxiedProcessId: u32ยงActivationStack: ACTIVATION_CONTEXT_STACKยงWorkingOnBehalfTicket: [u8; 8]ยงExceptionCode: NTSTATUSยงActivationContextStackPointer: *mut ACTIVATION_CONTEXT_STACKยงInstrumentationCallbackSp: usizeยงInstrumentationCallbackPreviousPc: usizeยงInstrumentationCallbackPreviousSp: usizeยงTxFsContext: u32ยงInstrumentationCallbackDisabled: BOOLEANยงUnalignedLoadStoreExceptions: BOOLEANยงGdiTebBatch: GDI_TEB_BATCHยงRealClientId: CLIENT_IDยงGdiCachedProcessHandle: HANDLEยงGdiClientPID: u32ยงGdiClientTID: u32ยงGdiThreadLocalInfo: *mut c_voidยงWin32ClientInfo: [usize; 62]ยงglDispatchTable: [*mut c_void; 233]ยงglReserved1: [usize; 29]ยงglReserved2: *mut c_voidยงglSectionInfo: *mut c_voidยงglSection: *mut c_voidยงglTable: *mut c_voidยงglCurrentRC: *mut c_voidยงglContext: *mut c_voidยงLastStatusValue: NTSTATUSยงStaticUnicodeString: UNICODE_STRINGยงStaticUnicodeBuffer: [u16; 261]ยงDeallocationStack: *mut c_voidยงTlsSlots: [*mut c_void; 64]ยงTlsLinks: LIST_ENTRYยงVdm: *mut c_voidยงReservedForNtRpc: *mut c_voidยงDbgSsReserved: [*mut c_void; 2]ยงHardErrorMode: u32ยงInstrumentation: [*mut c_void; 11]ยงActivityId: GUIDยงSubProcessTag: *mut c_voidยงPerflibData: *mut c_voidยงEtwTraceData: *mut c_voidยงWinSockData: *mut c_voidยงGdiBatchCount: u32ยงAnonymous1: TEB_1ยงGuaranteedStackBytes: u32ยงReservedForPerf: *mut c_voidยงReservedForOle: *mut c_voidยงWaitingOnLoaderLock: u32ยงSavedPriorityState: *mut c_voidยงReservedForCodeCoverage: usizeยงThreadPoolData: *mut c_voidยงTlsExpansionSlots: *mut *mut c_voidยงDeallocationBStore: *mut c_voidยงBStoreLimit: *mut c_voidยงMuiGeneration: u32ยงIsImpersonating: u32ยงNlsCache: *mut c_voidยงpShimData: *mut c_voidยงHeapData: u32ยงCurrentTransactionHandle: HANDLEยงActiveFrame: *mut TEB_ACTIVE_FRAMEยงFlsData: *mut c_voidยงPreferredLanguages: *mut c_voidยงUserPrefLanguages: *mut c_voidยงMergedPrefLanguages: *mut c_voidยงMuiImpersonation: u32ยงAnonymous2: TEB_2ยงAnonymous3: TEB_3ยงTxnScopeEnterCallback: *mut c_voidยงTxnScopeExitCallback: *mut c_voidยงTxnScopeContext: *mut c_voidยงLockCount: u32ยงWowTebOffset: i32ยงResourceRetValue: *mut c_voidยงReservedForWdf: *mut c_voidยงReservedForCrt: u64ยงEffectiveContainerId: GUIDยงLastSleepCounter: u64ยงSpinCallCount: u32ยงExtendedFeatureDisableMask: u64

Trait Implementationsยง

sourceยง

impl Debug for TEB

sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
sourceยง

impl Default for TEB

sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more

Auto Trait Implementationsยง

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.