IRP_MJ_CREATE、IRP_MJ_CLOSE
DriverObject->DriverUnload = DokanUnload; DriverObject->MajorFunction[IRP_MJ_CREATE] = DokanDispatchCreate; DriverObject->MajorFunction[IRP_MJ_CLOSE] = DokanDispatchClose; DriverObject->MajorFunction[IRP_MJ_CLEANUP] = DokanDispatchCleanup; DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = DokanDispatchDeviceControl; DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] = DokanDispatchFileSystemControl; DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] = DokanDispatchDirectoryControl; DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] = DokanDispatchQueryInformation; DriverObject->MajorFunction[IRP_MJ_SET_INFORMATION] = DokanDispatchSetInformation; DriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] = DokanDispatchQueryVolumeInformation; DriverObject->MajorFunction[IRP_MJ_SET_VOLUME_INFORMATION] = DokanDispatchSetVolumeInformation; DriverObject->MajorFunction[IRP_MJ_READ] = DokanDispatchRead; DriverObject->MajorFunction[IRP_MJ_WRITE] = DokanDispatchWrite; DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = DokanDispatchFlush; DriverObject->MajorFunction[IRP_MJ_SHUTDOWN] = DokanDispatchShutdown; DriverObject->MajorFunction[IRP_MJ_PNP] = DokanDispatchPnp; DriverObject->MajorFunction[IRP_MJ_LOCK_CONTROL] = DokanDispatchLock; DriverObject->MajorFunction[IRP_MJ_QUERY_SECURITY] = DokanDispatchQuerySecurity; DriverObject->MajorFunction[IRP_MJ_SET_SECURITY] = DokanDispatchSetSecurity;
1.IRP_MJ_CREATE (FS 和 FS 筛选器) - Windows drivers | Microsoft Learn
IRP:中断请求......