core.sys.windows.dll

This module provides OS specific helper function for DLL support

Module Initializers 1

static this()

Module Deinitializers 1

static ~this()

Functions 10

fnvoid rt_moduleTlsCtor() extern(C)
fnvoid rt_moduleTlsDtor() extern(C)
fnbool dll_fixTLS( HINSTANCE hInstance, void * tlsstart, void * tlsend, void * tls_callbacks_a, int * tlsindex ) nothrow
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 DLL_PROCESS_ATTACH
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 DLL_PROCESS_DETACH
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 DLL_THREAD_ATTACH 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 DLL_THREAD_DETACH Returns: true for success, false for failure

Variables 1

varbool tlsCtorRun