core.sys.windows.threadaux

This module provides OS specific helper function for threads support

Types 6

structthread_aux
Fields
5 SystemProcessInformation
0xc0000004 STATUS_INFO_LENGTH_MISMATCH
0 ThreadBasicInformation
0x00100000 SYNCHRONIZE
8 THREAD_GET_CONTEXT
0x40 THREAD_QUERY_INFORMATION
2 THREAD_SUSPEND_RESUME
Methods
void * * getTEB( HANDLE hnd ) nothrow @nogc
void * * getTEB( uint id ) nothrow @nogc
void * * getTEB() nothrow @nogc
void * getThreadStackBottom( HANDLE hnd ) nothrow @nogc
void * getThreadStackBottom( uint id ) nothrow @nogc
HANDLE OpenThreadHandle( uint id ) nothrow @nogc
bool enumProcessThreads( uint procid, bool function( uint id, void * context ) dg, void * context )
bool enumProcessThreads( bool function( uint id, void * context ) dg, void * context )
void impersonate_thread( uint id, externCVoidFunc fn )
void impersonate_thread( uint id, scope void delegate() dg)
Nested Templates
UNICODE_STRING
_SYSTEM_PROCESS_INFORMATION
_SYSTEM_THREAD_INFORMATION
THREAD_BASIC_INFORMATION
aliasgetTEB = thread_aux.getTEB
aliasgetThreadStackBottom = thread_aux.getThreadStackBottom
aliasOpenThreadHandle = thread_aux.OpenThreadHandle
aliasenumProcessThreads = thread_aux.enumProcessThreads
aliasimpersonate_thread = thread_aux.impersonate_thread

Functions 7

fnHANDLE OpenThread(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwThreadId) nothrow @nogc
fnvoid * GetTlsDataAddress( HANDLE hnd ) nothrow
fnvoid * GetTlsDataAddress( uint id ) nothrow
fnvoid thread_moduleTlsCtor( uint id )
fnvoid thread_moduleTlsDtor( uint id )

Variables 1

varint _tls_index