Disabling Thread Library Calls (Windows CE 5.0)
Multithreaded applications can become quite large and complex. To increase the efficiency of your code, Windows CE exposes the DisableThreadLibraryCalls function. DisableThreadLibraryCalls disables the DLL_THREAD_ATTACH and DLL_THREAD_DETACH notification calls from a specified DLL module. By disabling the notifications for a DLL, Windows CE does not page in the DLL initialization code when creating or deleting a thread.
Use DisableThreadLibraryCalls in multithreaded applications that have many DLL calls that frequently create and delete threads, or whose DLLs do not require thread-level attachment and detachment notification. You can also disable thread notification when you do not need to track a thread. To disable thread tracking, call DisableThreadLibraryCalls in the code that responds to a DLL_PROCESS_ATTACH message.
See Also
Send Feedback on this topic to the authors