---
name: "DisableThreadLibraryCalls"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/DisableThreadLibraryCalls"
---

# 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)](/GetLastError/3w.md)** 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"**.
