#if 0 .........#endif可以用来屏蔽大段代码,但是是使用的时候要注意
// add by wogo at 2009-03-12
//RETAILMSG(1, (TEXT("Deal with hevInterrupt@@@!!! :/r/n")));
#if 0
cEvents = (*pKeybdIst->pfnGetKeybdEvent)
(pKeybdIst->uiPddId, rguiScanCode, rgfKeyUp);
for (UINT iEvent = 0; iEvent < cEvents; ++iEvent) {
(*pKeybdIst->pfnKeybdEvent)(pKeybdIst->uiPddId,
rguiScanCode[iEvent], rgfKeyUp[iEvent]);
}
// cEvents could be 0 if this was a partial scan code, like 0xE0
#endif
不能
#if 0
// add by wogo at 2009-03-12
//RETAILMSG(1, (TEXT("Deal with hevInterrupt@@@!!! :/r/n")));
cEvents = (*pKeybdIst->pfnGetKeybdEvent)
(pKeybdIst->uiPddId, rguiScanCode, rgfKeyUp);
for (UINT iEvent = 0; iEvent < cEvents; ++iEvent) {
(*pKeybdIst->pfnKeybdEvent)(pKeybdIst->uiPddId,
rguiScanCode[iEvent], rgfKeyUp[iEvent]);
}
// cEvents could be 0 if this was a partial scan code, like 0xE0
#endif