zoukankan      html  css  js  c++  java
  • 可以没有DllMain滴

    一句话总结:DllMain函数是dll的entry point。但是,有两种dll可以不用带dllmain函数:一种自然是资源dll;另一种是dll不需要在entry point做什么事情,所以不写了干脆。但是系统在往进程里加载一个dll的时候,一定会去找dllmain的。如果dll本身没有提供,那么会调用一个默认的(应该是CRT的)dllmain函数。

    MSDN上的话:

    DllMain Callback Function

    An optional entry point into a dynamic-link library (DLL). When the system starts or terminates a process or thread, it calls the entry-point function for each loaded DLL using the first thread of the process. The system also calls the entry-point function for a DLL when it is loaded or unloaded using the LoadLibrary and FreeLibrary functions.

  • 相关阅读:
    深入.net(文件操作)
    深入.net(多态二)
    Django之form组件
    cookie
    Django进阶
    Django基础
    JQuery
    Dom
    JavaScript
    CSS
  • 原文地址:https://www.cnblogs.com/taoxu0903/p/1394360.html
Copyright © 2011-2022 走看看