#include <debug.h>
static DRIVER_DISPATCH PciDispatchDeviceControl;
-static NTSTATUS STDCALL PciDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
+static NTSTATUS NTAPI PciDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
static DRIVER_ADD_DEVICE PciAddDevice;
-static NTSTATUS STDCALL PciAddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT PhysicalDeviceObject);
+static NTSTATUS NTAPI PciAddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT PhysicalDeviceObject);
static DRIVER_DISPATCH PciPowerControl;
-static NTSTATUS STDCALL PciPowerControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
+static NTSTATUS NTAPI PciPowerControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
static DRIVER_DISPATCH PciPnpControl;
-static NTSTATUS STDCALL PciPnpControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
+static NTSTATUS NTAPI PciPnpControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
#ifdef ALLOC_PRAGMA
/*** PRIVATE *****************************************************************/
static NTSTATUS
-STDCALL
+NTAPI
PciDispatchDeviceControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
PIO_STACK_LOCATION IrpSp;
NTSTATUS Status;
+ UNREFERENCED_PARAMETER(DeviceObject);
DPRINT("Called. IRP is at (0x%X)\n", Irp);
Irp->IoStatus.Information = 0;
static NTSTATUS
-STDCALL
+NTAPI
PciPnpControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
static NTSTATUS
-STDCALL
+NTAPI
PciPowerControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
static NTSTATUS
-STDCALL
+NTAPI
PciAddDevice(
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT PhysicalDeviceObject)
NTSTATUS
-STDCALL
+NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)
{
NTSTATUS Status;
+ UNREFERENCED_PARAMETER(RegistryPath);
DPRINT("Peripheral Component Interconnect Bus Driver\n");
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = PciDispatchDeviceControl;