38 if (
Irp->AssociatedIrp.SystemBuffer)
97 FinalStatus = KernelIosb->Status;
151 NormalRoutine =
NULL;
152 NormalContext =
NULL;
291 if ((
FileObject->CompletionContext) && (UserApcRoutine))
322 (
PVOID*)&EventObject,
348 LockedForSynch =
TRUE;
433 CompletionInfo = *(
FileObject->CompletionContext);
450 if (CompletionInfo.
Port !=
NULL && UserApcContext !=
NULL)
479 Irp->UserEvent = EventObject;
480 Irp->Overlay.AsynchronousParameters.UserApcRoutine = UserApcRoutine;
481 Irp->Overlay.AsynchronousParameters.UserApcContext = UserApcContext;
487 Irp->AssociatedIrp.SystemBuffer =
NULL;
489 Irp->Tail.Overlay.AuxiliaryBuffer =
NULL;
529 Irp->AssociatedIrp.SystemBuffer =
576 Irp->AssociatedIrp.SystemBuffer =
599 if (!
Irp->MdlAddress)
699 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
NULL;
808 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
NULL;
810 Irp->AssociatedIrp.SystemBuffer =
Buffer;
818 Stack->Parameters.QueryFile.FileInformationClass = FileInfoClass;
900 FileName.Buffer = RenameInfo->FileName;
901 FileName.Length = RenameInfo->FileNameLength;
902 FileName.MaximumLength = RenameInfo->FileNameLength;
907 RenameInfo->RootDirectory,
919 FileObjectExtension =
FileObject->FileObjectExtension;
964 !RenameInfo->ReplaceIfExists &&
978 (
PVOID *)&TargetFileObject,
996 Stack->Parameters.SetFile.FileObject = TargetFileObject;
1066 while (StackDO !=
NULL)
1075 StackDO = StackDO->AttachedDevice;
1100 DriverName.
Length = DriverPathInfo->DriverNameLength;
1101 DriverName.
MaximumLength = DriverPathInfo->DriverNameLength;
1102 DriverName.
Buffer = &DriverPathInfo->DriverName[0];
1179 Irp->UserIosb = StatusBlock;
1249 Irp->UserIosb = StatusBlock;
1359 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
NULL;
1585 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
NULL;
1715 LockedForSync =
TRUE;
1735 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
ApcRoutine;
1736 Irp->Overlay.AsynchronousParameters.UserApcContext =
ApcContext;
1842 CapturedLength = *
Length;
1869 &CapturedByteOffset,
1914 return KernelIosb.
Status;
1929 LockedForSync =
TRUE;
1946 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
ApcRoutine;
1947 Irp->Overlay.AsynchronousParameters.UserApcContext =
ApcContext;
1967 *LocalLength = CapturedLength;
1968 Irp->Tail.Overlay.AuxiliaryBuffer = (
PVOID)LocalLength;
2038 if (CapturedFileName.
Length)
2048 CapturedFileName.
Length +
2054 CapturedFileName.
Length);
2077#define CHECK_LENGTH(class, struct) \
2079 if (Length < sizeof(struct)) \
2080 return STATUS_INFO_LENGTH_MISMATCH; \
2151 LockedForSynch =
TRUE;
2170 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
ApcRoutine;
2171 Irp->Overlay.AsynchronousParameters.UserApcContext =
ApcContext;
2173 Irp->Tail.Overlay.AuxiliaryBuffer = AuxBuffer;
2174 Irp->AssociatedIrp.SystemBuffer =
NULL;
2183 Irp->AssociatedIrp.SystemBuffer =
2238 StackPtr->
Flags = 0;
2295 PVOID NormalContext;
2404 CurrentByteOffset =
FileObject->CurrentByteOffset;
2487 return KernelIosb.
Status;
2502 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
NULL;
2506 Irp->AssociatedIrp.SystemBuffer =
NULL;
2519 Irp->AssociatedIrp.SystemBuffer =
2550 AccessBuffer =
Irp->AssociatedIrp.SystemBuffer;
2557 ModeBuffer =
Irp->AssociatedIrp.SystemBuffer;
2564 AlignmentBuffer =
Irp->AssociatedIrp.SystemBuffer;
2571 AllBuffer =
Irp->AssociatedIrp.SystemBuffer;
2663 NormalRoutine =
NULL;
2664 NormalContext =
NULL;
2723 ULONG CapturedKey = 0;
2826 if (
Key) CapturedKey = *
Key;
2830 if ((CapturedByteOffset.
QuadPart < 0) && (CapturedByteOffset.
QuadPart != -2))
2845 (
PVOID*)&EventObject,
2873 (CapturedByteOffset.
u.HighPart == -1)))
2876 CapturedByteOffset =
FileObject->CurrentByteOffset;
2887 &CapturedByteOffset,
2932 return KernelIosb.
Status;
2959 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
ApcRoutine;
2960 Irp->Overlay.AsynchronousParameters.UserApcContext =
ApcContext;
2962 Irp->UserEvent = EventObject;
2966 Irp->AssociatedIrp.SystemBuffer =
NULL;
2987 Irp->AssociatedIrp.SystemBuffer =
3111 PVOID NormalContext;
3271 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
NULL;
3275 Irp->AssociatedIrp.SystemBuffer =
NULL;
3288 Irp->AssociatedIrp.SystemBuffer =
3333 CompletionInfo =
Irp->AssociatedIrp.SystemBuffer;
3376 Irp->IoStatus.Information = 0;
3383 RenameInfo =
Irp->AssociatedIrp.SystemBuffer;
3509 NormalRoutine =
NULL;
3510 NormalContext =
NULL;
3617 CapturedLength = *
Length;
3635 &CapturedByteOffset,
3655 return KernelIosb.
Status;
3697 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
NULL;
3714 *LocalLength = CapturedLength;
3715 Irp->Tail.Overlay.AuxiliaryBuffer = (
PVOID)LocalLength;
3781 ULONG CapturedKey = 0;
3889 if (
Key) CapturedKey = *
Key;
3893 if (CapturedByteOffset.
QuadPart < -2)
3907 CapturedByteOffset.
u.HighPart = -1;
3918 (
PVOID*)&EventObject,
3946 (CapturedByteOffset.
u.HighPart == -1)))
3949 CapturedByteOffset =
FileObject->CurrentByteOffset;
3960 &CapturedByteOffset,
4003 return KernelIosb.
Status;
4030 Irp->Overlay.AsynchronousParameters.UserApcRoutine =
ApcRoutine;
4031 Irp->Overlay.AsynchronousParameters.UserApcContext =
ApcContext;
4033 Irp->UserEvent = EventObject;
4037 Irp->AssociatedIrp.SystemBuffer =
NULL;
4060 Irp->AssociatedIrp.SystemBuffer =