实现函数如下:
DWORD SPL_Read(DWORD hOpenContext,LPVOID pBuffer,DWORD Count)
{
uchar* pReadBuffer;
RETAILMSG(1,(TEXT(":::SPL_Read.\r\n")));
if((pBuffer==NULL)||(Count<=0))
{
RETAILMSG(1,(TEXT(":::SPL_Read()parameter is error.\r\n")));
return 0;
}
pReadBuffer = MapPtrToProcess(pBuffer,GetCallerProcess());
*pReadBuffer=g_Tmp;
return 1;
}
编译出现错误
BUILD: [01:0000000024:ERRORE] e:\WINCE500\PBWorkspaces\yl2410\SampleDriver\SampleDriver.cpp(100) : error C3861: 'MapPtrToProcess': identifier not found, even with argument-dependent lookup
BUILD: [01:0000000025:ERRORE] e:\WINCE500\PBWorkspaces\yl2410\SampleDriver\SampleDriver.cpp(100) : error C3861: 'GetCallerProcess': identifier not found, even with argument-dependent lookup
可是已经在sources中指出
TARGETLIBS= \
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\coredll.lib \
为什么还是找不到呢?望指教!