[DllImport("kernel32.dll", CharSet=CharSet.Ansi)]
      public static extern IntPtr GetProcAddress(IntPtr hModule, string lpProcName);经常看到类似这样操作dll中函数的代码,
但在网上搜了一下,没有找到kernel32.dll下有什么样的函数,功能是什么的相关说明文档,不知道哪位兄弟有,可否共享一下。

解决方案 »

  1.   

    API.CHM中都有详细的介绍,找不到就联系我==================================================================
    博客空间:http://blog.csdn.net/lovingkiss
    资源下载:http://download.csdn.net/user/lovingkiss
    Email:loving-kiss@163.com
    本人说明:<我的帖子我做主,结贴率保持100%>
    优惠接单开发,信誉保证,Q64180940(请清楚注明业务还是技术咨询) 
    ==================================================================
      

  2.   

    你没装msdn还时装的不全?
    msdn就有api文档。GetProcAddressThe GetProcAddress function retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).
    FARPROC GetProcAddress(
      HMODULE hModule,
      LPCSTR lpProcName
    );Parameters
    hModule 
    [in] Handle to the DLL module that contains the function or variable. The LoadLibrary or GetModuleHandle function returns this handle. 
    lpProcName 
    [in] Pointer to a null-terminated string that specifies the function or variable name, or the function's ordinal value. If this parameter is an ordinal value, it must be in the low-order word; the high-order word must be zero. 
    Return Values
    If the function succeeds, the return value is the address of the exported function or variable.If the function fails, the return value is NULL. To get extended error information, call GetLastError.Res
    The spelling and case of a function name pointed to by lpProcName must be identical to that in the EXPORTS statement of the source DLL's module-definition (.def) file. The exported names of functions may differ from the names you use when calling these functions in your code. This difference is hidden by macros used in the SDK header files. For more information, see Conventions for Function Prototypes.The lpProcName parameter can identify the DLL function by specifying an ordinal value associated with the function in the EXPORTS statement. GetProcAddress verifies that the specified ordinal is in the range 1 through the highest ordinal value exported in the .def file. The function then uses the ordinal as an index to read the function's address from a function table. If the .def file does not number the functions consecutively from 1 to N (where N is the number of exported functions), an error can occur where GetProcAddress returns an invalid, non-NULL address, even though there is no function with the specified ordinal.In cases where the function may not exist, the function should be specified by name rather than by ordinal value.
      

  3.   

    我要的是dll的列表,就是说,有哪些dll,这些函数属于哪个dll
      

  4.   

    访问下面的网站有你想要的
    http://www.pinvoke.net/
      

  5.   

    zxkid提供的网站上的内容就相当的全了,你就是不看,有什么办法呢
      

  6.   

    TO:zxkid
    不好意思,因为看到你的这段文字,和
    以前我看到的广告非常像。
    所以说了上边的话。在这里郑重道歉!!