//------------------------------------------------------------------------------ // // Function: OEMKitlIoctl // // This function is called by some KITL libraries to process platform specific // KITL IoCtl calls. // BOOL OEMKitlIoctl (DWORD code, VOID * pInBuffer, DWORD inSize, VOID * pOutBuffer, DWORD outSize, DWORD * pOutSize) { BOOL fRet = FALSE; switch (code) { case IOCTL_HAL_INITREGISTRY: OALKitlInitRegistry(); break; default: fRet = OALIoCtlVBridge (code, pInBuffer, inSize, pOutBuffer, outSize, pOutSize); } return fRet; }
//------------------------------------------------------------------------------ // // Function: OEMKitlIoctl // // This function handles KITL IOCTL codes. // // BOOL OEMKitlIoctl (DWORD code, VOID * pInBuffer, DWORD inSize, VOID * pOutBuffer, DWORD outSize, DWORD * pOutSize) { BOOL fRet = FALSE; switch (code) { case IOCTL_HAL_INITREGISTRY: OALKitlInitRegistry(); // Leave return code false and set last error to ERROR_NOT_SUPPORTED // This allows code to fall through to OEMIoctl so IOCTL_HAL_INITREGISTRY can be // handled there as well. NKSetLastError(ERROR_NOT_SUPPORTED); break; default: fRet = OALIoCtlVBridge (code, pInBuffer, inSize, pOutBuffer, outSize, (UINT32*)pOutSize); } return fRet; }