_NutDisableThreadLibraryCalls()

do not invoke DLLMain() when threads are created or destroyed 

Function


SYNOPSIS

#include <winnutc.h>

int _NutDisableThreadLibraryCalls(HMODULE hDllHandle);


DESCRIPTION

The _NutDisableThreadLibraryCalls() function is used to notify Windows that the DllMain() function of the DLL with the specified handle should not be invoked when new threads are created and destroyed. This function is a wrapper around the Win32 DisableThreadLibraryCalls() function. Refer to the corresponding Win32 documentation for more information.


PARAMETERS

hDllHandle 

Is the handle for the DLL for which thread calls are to be disabled. This is the value passed into the DLL's DllMain() function.


RETURN VALUES

If successful, _NutDisableThreadLibraryCalls() returns TRUE. On failure, it returns FALSE.


CONFORMANCE

PTC MKS Toolkit UNIX APIs extension.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

Refer to Porting Shared Libraries in the PTC MKS Toolkit UNIX to Windows Porting Guide for detailed information on the use of this function.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


PTC MKS Toolkit 10.3 Documentation Build 39.