Most DLL libraries - a collection of almost independent of each other functions, which are exported to the program and that are used in them. In addition to functions for export, each library DLL divxdecoder dll download a function DllMain. This function is used to initialize and DLL cleanup. It replaced the LibMain and WEP features that used in previous versions of Windows. The structure of the simplest DllMain function:
BOOL WINAPI DllMain (HANDLE hInst, DWORD dwReason, LPVOID IpReserved)
BOOL bAllWentWell = TRUE;
(Case DLL_PROCESS_ATTACH: // initialization process.
case DLL_THREAD_ATTACH: // Initialization of flow.
case DLL_THREAD_DETACH: // Cleanup flow structures.
case DLL_PROCESS_DETACH: // Cleanup process structures.
) If (bAllWentWell) return TRUE;
else return FALSE;
How to download free divxdecoder.dll?
DllMain function is called on a few occasions. The reason for her call identified by the dwReason, which can take one of the following values.
When you first load the DLL process function is called from DllMain dwReason, direct DLL_PROCESS_ATTACH. Each time a new process is invoked from DllMainO flow dwReason, even DLL_THREAD_ATTACH (except for the first stream, because in this case equals dwReason DLL_PROCESS_ATTACH).
At the end of the process of DLL DllMain function is called with the parameter dwReason, even DLL_PROCESS_DETACH. With the destruction of stream (except the first) dwReason it will equal DLL_THREAD_DETACH.
All operations of initialization and cleanup for the processes and flows that are required DLL divxdecoder dll download, must be performed on the basis of values â€‹â€‹dwReason, as was shown in the previous example. The initialization process is usually limited to allocation of resources, the shared flows, in particular, separated by loading files and initializing libraries. Initialization flows used to establish regimes that are unique to that thread.