DllMain

GPTKB entity

Statements (28)
Predicate Object
gptkbp:instanceOf gptkb:software
gptkbp:calledWhen DLL loaded
DLL unloaded
thread created
thread exits
gptkbp:callsign gptkb:Windows_loader
gptkbp:definedIn Windows API
gptkbp:documentedIn gptkb:Microsoft_Docs
gptkbp:exportedTo DLL
gptkbp:fdwReason_values DLL_PROCESS_ATTACH
DLL_PROCESS_DETACH
DLL_THREAD_ATTACH
DLL_THREAD_DETACH
https://www.w3.org/2000/01/rdf-schema#label DllMain
gptkbp:language gptkb:C++
C
gptkbp:parameter DWORD fdwReason
HINSTANCE hinstDLL
LPVOID lpvReserved
gptkbp:purpose entry point for DLL
gptkbp:result BOOL
gptkbp:shouldNot call FreeLibrary inside DllMain
call LoadLibrary inside DllMain
perform lengthy operations
perform thread synchronization
gptkbp:usedIn Windows programming
gptkbp:bfsParent gptkb:Dynamic-link_library
gptkbp:bfsLayer 6