nulib.system.win32.dll

This module provides OS specific helper function for DLL support

Public Imports

nulib.system.win32.threadaux
public import nulib.system.win32.threadaux;
Undocumented in source.

Members

Aliases

__xl_a
alias __xl_a = _tls_callbacks_a
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_tls_end
alias _tls_end = _tlsend
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_tlsstart
alias _tlsstart = _tls_start
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

dll_fixTLS
bool dll_fixTLS(HINSTANCE hInstance, void* tlsstart, void* tlsend, void* tls_callbacks_a, int* tlsindex)
Undocumented in source. Be warned that the author may not have intended to support it.
dll_getRefCount
int dll_getRefCount(HINSTANCE hInstance)
Undocumented in source. Be warned that the author may not have intended to support it.
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 checking for shared runtime

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, HINSTANCE hInstance)

To be called from DllMain with reason DLL_THREAD_ATTACH

dll_thread_detach
bool dll_thread_detach(bool detach_thread, bool exitTls, HINSTANCE hInstance)

To be called from DllMain with reason DLL_THREAD_DETACH

isSharedDRuntime
bool isSharedDRuntime()

Check whether the D runtime is built as a DLL or linked statically

Mixin templates

SimpleDllMain
mixintemplate SimpleDllMain()

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

Static variables

__xl_a
void* __xl_a;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_tls_end
byte _tls_end;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_tls_index
int _tls_index;

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

_tls_start
byte _tls_start;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
tlsCtorRun
bool tlsCtorRun;
Undocumented in source.

Meta

License

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

Authors

Rainer Schuetze