能力值:
( LV2,RANK:10 )
|
-
-
2 楼
/***********************************************************************************************************************
* 函数名称:SearchFeature
* 功能描述:
* 参数列表:
* 返回 值 :返回初始化驱动状态
************************************************************************************************************************/
ULONG _stdcall SearchFeature(IN ULONG uStartAddr, IN ULONG uOffset, IN BYTE *szcode, IN ULONG uLength)
{
ULONG uIndex;
BYTE *pbyAddr = (BYTE*)uStartAddr;
ULONG uCount = 0;
/* (uOffset-uLength)优化 */
while (uCount <= (uOffset-uLength))
{
for (uIndex = 0; uIndex < uLength; uIndex++)
{
if (SEARCH_IGNORE_SIZE != uOffset)
{
uCount++;
}
if ((*(pbyAddr+uIndex)) != (*(szcode+uIndex)))
{
break;
}
else
{
continue;
}
}
/* 如果找到就返回 */
if (uIndex == uLength)
{
KdPrint(("Characteristic Code Search Suc!\n"));
KdPrint(("StartAddr:0x%08x, 0xCount:%05x, Addr:0x%08x\n",
uStartAddr, uCount, pbyAddr));
return (ULONG)pbyAddr;
}
pbyAddr++;
}
return SEARCH_NOT_FINDOBJ;
}
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
DEL IT
|
|
|