rt

解决方案 »

  1.   

    模块ID?可能使我孤陋寡闻,没听说过有这个概念函数LoadModule的返回值,也没有文档说明它是模块ID而且函数LoadModule是兼容16位Windows的保留函数,现在都用CreateProcess
      

  2.   

    typedef struct tagMODULEENTRY32 { 
        DWORD   dwSize; 
        DWORD   th32ModuleID; 
        DWORD   th32ProcessID; 
        DWORD   GlblcntUsage; 
        DWORD   ProccntUsage; 
        BYTE  * modBaseAddr; 
        DWORD   modBaseSize; 
        HMODULE hModule; 
        char    szModule[MAX_MODULE_NAME32 + 1]; 
        char    szExePath[MAX_PATH]; 
    } MODULEENTRY32; 
    typedef MODULEENTRY32 *  PMODULEENTRY32; 
    typedef MODULEENTRY32 *  LPMODULEENTRY32; 
     
    这里面就有啊。
      

  3.   

    msdn里面不是说了嘛,
    th32ModuleID 
    Module identifier in the context of the owning process. The contents of this member has meaning only to the tool help functions. It is not a handle, nor is it usable by Win32 API elements. 
    只对tool help 函数有效,不是一个可用的API元素。
      

  4.   

    不是一个可用的API元素,请问是不是这个参数可以设为NULL,比如在getmodulefilenameex里面?