|
我查到了 TouchPanelEnable这个函数是DDI的接口,但是如果要使用它好像必须用动态加载
hiCoreDll = LoadLibrary(_T("\\Windows\\zylonite_touch.dll"));
if(hiCoreDll != NULL) {
RETAILMSG(1,(TEXT("LOAD LIB successful+++\r\n")));
p_te = (p_touchenable)GetProcAddress((HMODULE)hiCoreDll, L"TouchPanelEnable");
p_td = (p_touchdisable)GetProcAddress((HMODULE)hiCoreDll, L"TouchPanelDisable");
}
但是驱动DLL文件在windows目录下是只读的,所以不能被加载,除非在platform.bib文件中修改属性,但是如果把
$(_TGTPLAT_PFX)_touch.dll $(_FLATRELEASEDIR)\$(_TGTPLAT_PFX)_touch.dll NK SHK
改成
$(_TGTPLAT_PFX)_touch.dll $(_FLATRELEASEDIR)\$(_TGTPLAT_PFX)_touch.dll NK SH
驱动DLL就不能被系统加载
矛盾啊!! |
|