Catched STDCALL IRP (*CompletionRoutine)() and (*CancelRoutine)().
[reactos.git] / include / ddk / iotypes.h
index 8e11b46..2507de4 100644 (file)
@@ -92,7 +92,12 @@ typedef NTSTATUS STDCALL_FUNC
                            ULONG PeripheralNumber,
                            PKEY_VALUE_FULL_INFORMATION* PI);
 
-typedef NTSTATUS STDCALL_FUNC
+typedef NTSTATUS
+#ifndef LIBCAPTIVE
+               STDCALL_FUNC
+#else /* !LIBCAPTIVE */
+               CAPTIVE_STDCALL
+#endif /* !LIBCAPTIVE */
 (*PIO_COMPLETION_ROUTINE)(struct _DEVICE_OBJECT* DeviceObject,
                          struct _IRP* Irp,
                          PVOID Context);
@@ -764,7 +769,12 @@ typedef NTSTATUS
 /*
  * Driver cancel declaration
  */
-typedef NTSTATUS STDCALL_FUNC
+typedef NTSTATUS
+#ifndef LIBCAPTIVE
+               STDCALL_FUNC
+#else /* !LIBCAPTIVE */
+               CAPTIVE_STDCALL
+#endif /* !LIBCAPTIVE */
 (*PDRIVER_CANCEL)(struct _DEVICE_OBJECT* DeviceObject,
                  struct _IRP* RegistryPath);