为什么在地址映射表里面找不到我加载的dll
程序初始化的时候我已经HMODULE hMod=LoadLibrary("shell32.dll");但通过下面代码找不到我的那个模块
IMAGE_DOS_HEADER *pD=(IMAGE_DOS_HEADER*)hMod;
IMAGE_OPTIONAL_HEADER *pOld=(IMAGE_OPTIONAL_HEADER*)((BYTE*)hMod+pD->e_lfanew+24);
IMAGE_IMPORT_DESCRIPTOR *pI=(IMAGE_IMPORT_DESCRIPTOR*)((BYTE*)hMod+pOld->DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT].VirtualAddress);
//在导入表中查找shell32.dll 模块
while(pI->FirstThunk)
{
char *pszDllName=(char *)((BYTE*)hMod+pI->Name);
if(lstrcmpi(pszDllName,"shell32.dll")==0)//不区分大小写的字符串比较
{
break;
}
pI++;
}