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
NtDeviceIoControlFile
最新推荐文章于 2024-02-23 01:04:36 发布
本文详细介绍了NtDeviceIoControlFile函数的使用方法及其参数说明,该函数主要用于发送IOCTL_*控制码到设备驱动程序,是应用程序与设备驱动间通信的主要方式之一。
4446

被折叠的 条评论
为什么被折叠?



