NtDeviceIoControlFile

本文详细介绍了NtDeviceIoControlFile函数的使用方法及其参数说明,该函数主要用于发送IOCTL_*控制码到设备驱动程序,是应用程序与设备驱动间通信的主要方式之一。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

NtDeviceIoControlFile NTSYSAPI NTSTATUS NTAPI NtDeviceIoControlFile( IN HANDLE FileHandle, IN HANDLE Event OPTIONAL, IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, IN PVOID ApcContext OPTIONAL, OUT PIO_STATUS_BLOCK IoStatusBlock, IN ULONG IoControlCode, IN PVOID InputBuffer OPTIONAL, IN ULONG InputBufferLength, OUT PVOID OutputBuffer OPTIONAL, IN ULONG OutputBufferLength ); Function NtDeviceIoControlFile sends IOCTL_* control code to Device Driver. It is primary (but not the best) solution to communicate between application and Device Driver. -------------------------------------------------------------------------------- FileHandle HANDLE to Device Object opened as a file. Event Optional HANDLE to Event Object signalled on the end of processing request. ApcRoutine Optional pointer to user's APC Routine called on the end of processing request. ApcContext User's parameter to ApcRoutine. IoStatusBlock IO result of call. IoControlCode IO Control code [IOCTL_*]. InputBuffer User's allocated buffer with input data. InputBufferLength Length of InputBuffer, in bytes. OutputBuffer User's allocated buffer for result data. OutputBufferLength Length of OutputBuffer, in bytes. -------------------------------------------------------------------------------- See also NtFsControlFile. Documented by: Tomasz Nowak Reactos Requirements: Library: ntdll.lib See also: NtCreateFile NtFsControlFile NtOpenFile
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值