_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

MKS Toolkit UNIX APIs extension.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

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


AVAILABILITY

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


MKS Toolkit 9.3 Documentation Build 6.