update for HEAD-2003021201
[reactos.git] / include / ddk / iofuncs.h
index 08b8797..595b33e 100644 (file)
@@ -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) \
        { \