Reference

DisableThreadLibraryCalls(3w)

NAME

DisableThreadLibraryCalls (KERNEL32.@)

SYNOPSIS

BOOL DisableThreadLibraryCalls
(
HMODULE hModule
)

DESCRIPTION

Inform the module loader that thread notifications are not required for a dll.

PARAMS

hModule [In] Module handle to skip calls for.

RETURNS

Success: TRUE. Thread attach and detach notifications will not be sent to hModule.

Failure: FALSE. Use GetLastError(3w) to determine the cause.

NOTES

This is typically called from the dll entry point of a dll during process attachment, for dlls that do not need to process thread notifications.

IMPLEMENTATION

Declared in "rpcproxy.h".

Implemented in "dlls/kernel32/module.c".

Debug channel "module".

History