X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=include%2Fddk%2Fiofuncs.h;h=595b33eda53600f77d952faa62e3852fb1d275a9;hb=e3ed2d773259cc445c7ff8181ebd934931365328;hp=08b8797c13668cbf66ca4e450b3143b0487136a9;hpb=d378c68f5a9bb25c9e671dacd482d2e25d211df3;p=reactos.git diff --git a/include/ddk/iofuncs.h b/include/ddk/iofuncs.h index 08b8797..595b33e 100644 --- a/include/ddk/iofuncs.h +++ b/include/ddk/iofuncs.h @@ -613,6 +613,9 @@ IoGetConfigurationInformation ( #define IoGetCurrentIrpStackLocation(Irp) \ ((Irp)->Tail.Overlay.CurrentStackLocation) +#define IoGetPreviousIrpStackLocation(Irp) \ + ((Irp)->Tail.Overlay.CurrentStackLocation+1) + #define IoSetNextIrpStackLocation(Irp) { \ (Irp)->CurrentLocation--; \ (Irp)->Tail.Overlay.CurrentStackLocation--; } @@ -630,6 +633,12 @@ IoGetConfigurationInformation ( (Irp)->CurrentLocation++; \ (Irp)->Tail.Overlay.CurrentStackLocation++; +#define IoSetPreviousIrpStackLocation(Irp) \ + IoSkipCurrentIrpStackLocation(Irp) + +#define IoRetardCurrentIrpStackLocation(Irp) \ + IoSkipCurrentIrpStackLocation(Irp) + struct _EPROCESS* STDCALL IoGetCurrentProcess ( @@ -928,7 +937,7 @@ IoReportResourceUsage ( #define IoSetCancelRoutine(Irp,NewCancelRoutine) \ ((PDRIVER_CANCEL)InterlockedExchange((PULONG)&(Irp)->CancelRoutine, \ - (ULONG)(NewCancelRoutine))); + (ULONG)(NewCancelRoutine))) #define IoSetCompletionRoutine(Irp,Routine,Context,Success,Error,Cancel) \ { \