When is DllMain called with the DLL_PROCESS_VERIFIER flag?

On Windows, the standard entry point to the DLL is called DllMain. The second option - a DWORD, ul_reason_for_call.

I looked at the possible values ​​for this second parameter on MSDN. The following are obvious:

DLL_PROCESS_ATTACH:
DLL_THREAD_ATTACH:
DLL_THREAD_DETACH:
DLL_PROCESS_DETACH:

But what about:

DLL_PROCESS_VERIFIER

When will the entry point with this flag be called? Do I have to worry about this during the "normal" operation of the DLL?

Please note that I only see DLL_PROCESS_VERIFIERin the header files from Visual Studio 2005, and not in 2008.

+3
source share
3 answers

, Microsoft , , . , , : , , , , , .

+5

. SDK SDK. Google , . , , XBox-, , .

, , - Windows.

+1

I think this can make a difference if it is done through the Application Verifier . Type of guessing :)

0
source

Source: https://habr.com/ru/post/1737026/


All Articles