KernelLibIoControl函数学习
来源:互联网 发布:淘宝团队组建 编辑:程序博客网 时间:2024/06/08 04:08
在微软自带的16650驱动中出现了如下函数。
if (!KernelLibIoControl(m_hIsrHandler, IOCTL_ISR16550_INFO, pIsrAddress, dwBlockSize, NULL, 0, NULL)) {
DEBUGMSG(ZONE_ERROR,(TEXT("SL_InstallSoftwareISR: KernelLibIoControl call failed./r/n")));
KernelLibIoControl(m_hIsrHandler, IOCTL_ISR16550_UNLOAD, (LPVOID)&m_pIsrInfoVirt, sizeof(ISR16550_INFO), NULL, 0, NULL);
return FALSE;
}
现在来看看PB帮助吧。
This function is called from a driver to communicate with an interrupt handler.
BOOL KernelLibIoControl( HANDLE hModule, DWORD dwIoControlCode, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned);
Parameters
- hModule
- [in] Handle returned from the LoadIntChainHandler function.
- dwIoControlCode
- [in] OEM or ISV specified IOCTL.
- lpInBuf
- [in] Long pointer to a buffer that contains the data required to perform the operation. This parameter can be NULL if the dwIoControlCode parameter specifies an operation that does not require input data.
- nInBufSize
- [in] Size, in bytes, of the buffer pointed to by lpInBuffer.
- lpOutBuf
- [out] Long pointer to a buffer that receives the operation's output data. This parameter can be NULL if the dwIoControlCode parameter specifies an operation that does not produce output data.
- nOutBufSize
- [in] Size, in bytes, of the buffer pointed to by lpOutBuffer.
- lpBytesReturned
- [out] Long pointer to a variable that receives the size, in bytes, of the data stored in the buffer pointed to by lpOutBuffer. The lpBytesReturned parameter cannot be NULL.
Return Values
If the function succeeds, then TRUE is returned; otherwise, FALSE is returned.
To get extended error information, call the GetLastError function.
Remarks
KernelLibIoControl calls the IOControl function that is implemented in the ISR handler.
- KernelLibIoControl函数学习
- KernelIoControl和KernelLibIoControl
- 函数学习
- 函数学习
- 函数学习
- 函数学习
- DirectX函数学习:矩阵函数
- DirectX函数学习:颜色函数
- SQL函数学习 配置函数
- SQL函数学习---------STUFF()函数
- SQL函数学习----over函数
- 【Matlab学习笔记】【函数学习】cat函数
- c++学习-虚函数学习
- 学习的函数
- c++入门学习(函数)
- GetSelfImageSize函数学习
- oracle学习--函数
- 递归函数的学习
- MySQL的数据类型和建库策略
- MySQL数据库的临时文件究竟储存在哪里
- 界面设计-中英繁多国语言实现(PB)
- 今天元宵节,也是中国的情人节
- 转:软件测试常识
- KernelLibIoControl函数学习
- 关天Struts 2里URL标签的问题
- VB.net 连接 MySql,Use MySql.Data.dll
- 如何提高Linux系统命令行的工作效率
- 《asp.net夜话》一书测试视频免费发布(2009年4月13日更新)
- VB.Net中的数据绑定技术
- 为Struts 2.0做好准备
- 理解MySQL数据类型 避免数据库设计出现混乱
- 宏的妙用(转)