为KernelIoControl()添加新的自定义IoCtrl代码 [英] Adding new custom IoCtrl code for KernelIoControl()
问题描述
你好,
我需要添加一个新的自定义IOCTRL代码。
我定义了代码的值:
的#define IOCTL_CUSTOM_BOOTVER的 跨度> CTL_CODE(FILE_DEVICE_HAL,3001,METHOD_BUFFERED,FILE_ANY_ACCESS)
我将它添加到ioctl_tab.h列表并实现了相关的功能。
我将该代码的'case'行添加到switch()里面所述的IOControl()FN以 C:\WINCE700\public\common\oak\oalioctl\dll\oalioctl.cpp文件
<跨度风格=" font-size:0.75em; line-height:1.5"> Everythig编译时没有错误,但是当我用该代码调用KernelIoControl()时,我总是收到错误50 = ERROR_NOT_SUPPORTED。
我想念的是什么?
谢谢
SteMMo
当我在CE 6.0中添加了IOCTL时,我克隆了C:\ WINCE600 \ PLATFORM \ MY_BSP \ SRC \OA L \ OALIoctl并在那里更改oalioctl.cpp文件。 不知道这是否适用于WEC7 但您可能需要检查并查看oalioctl.cpp文件是否在
平台树中。
Bill
Hi there,
i need to add a new custom IOCTRL code.
I defined the value for the code:
#define IOCTL_CUSTOM_BOOTVER CTL_CODE(FILE_DEVICE_HAL, 3001, METHOD_BUFFERED, FILE_ANY_ACCESS)I added it to the ioctl_tab.h list and implemented the related function.
I added the 'case' line for that code into the switch() inside the IoControl() fn in C:\WINCE700\public\common\oak\oalioctl\dll\oalioctl.cpp file.
Everythig is compiled without errors but when i call the KernelIoControl() with that code i always receive error 50 = ERROR_NOT_SUPPORTED.
What i miss?
Thanks
SteMMo
When I have added IOCTL's in CE 6.0, I clone C:\WINCE600\PLATFORM\MY_BSP\SRC\OAL\OALIoctl and change the oalioctl.cpp file there. Don't know if this applies to WEC7 but you may want to check and see if the oalioctl.cpp file is in the platform tree.
Bill
这篇关于为KernelIoControl()添加新的自定义IoCtrl代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!