core.sys.windows.dll

This module provides OS specific helper function for DLL support

Module Initializers 1

static this()

Module Deinitializers 1

static ~this()

Types 1

structdll_aux
Methods
LDR_MODULE * findLdrModule( HINSTANCE hInstance, void * * peb ) nothrow @nogc
bool setDllTlsUsage( HINSTANCE hInstance, void * * peb ) nothrow
Nested Templates
UNICODE_STRING
LIST_ENTRY
LDR_MODULE
LDR_DDAG_NODE
PEB_LDR_DATA

Functions 12

fnbool dll_fixTLS( HINSTANCE hInstance, void * tlsstart, void * tlsend, void * tls_callbacks_a, int * tlsindex ) nothrow
private fnULONGLONG VerSetConditionMask(ULONGLONG, DWORD, BYTE) nothrow @nogc
private fnbool isWindows8OrLater() nothrow @nogc
fnint dll_getRefCount( HINSTANCE hInstance ) nothrow @nogc
fnbool dll_process_attach( HINSTANCE hInstance, bool attach_threads, void * tlsstart, void * tlsend, void * tls_callbacks_a, int * tlsindex )To be called from DllMain with reason DLLPROCESSATTACH
fnbool dll_process_attach( HINSTANCE hInstance, bool attach_threads = true )same as above, but checking for shared runtime
fnvoid dll_process_detach( HINSTANCE hInstance, bool detach_threads = true )to be called from DllMain with reason DLLPROCESSDETACH
fnbool isSharedDRuntime()Check whether the D runtime is built as a DLL or linked statically
fnbool dll_thread_attach( bool attach_thread = true, bool initTls = true, HINSTANCE hInstance = null )To be called from DllMain with reason DLLTHREADATTACH Returns: true for success, false for failure
fnbool dll_thread_detach( bool detach_thread = true, bool exitTls = true, HINSTANCE hInstance = null )To be called from DllMain with reason DLLTHREADDETACH Returns: true for success, false for failure

Variables 1

varbool tlsCtorRun