The OpenD Programming Language

core.sys.windows.dll

This module provides OS specific helper function for DLL support

Public Imports

core.sys.windows.threadaux
public import core.sys.windows.threadaux;
Undocumented in source.

Members

Functions

dll_process_attach
bool 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

dll_process_attach
bool dll_process_attach(HINSTANCE hInstance, bool attach_threads)

same as above, but only usable if druntime is linked statically

dll_process_detach
void dll_process_detach(HINSTANCE hInstance, bool detach_threads)

to be called from DllMain with reason DLL_PROCESS_DETACH

dll_thread_attach
bool dll_thread_attach(bool attach_thread, bool initTls)

To be called from DllMain with reason DLL_THREAD_ATTACH

dll_thread_detach
bool dll_thread_detach(bool detach_thread, bool exitTls)

To be called from DllMain with reason DLL_THREAD_DETACH

Mixin templates

SimpleDllMain
mixintemplate SimpleDllMain()

A mixin to provide a DllMain which calls the necessary D runtime initialization and termination functions automatically.

Static variables

_tls_index
int _tls_index;

////////////////////////////////////////////////////////////////

Meta

License

Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)

Authors

Rainer Schuetze