ReactOS 0.4.15-dev-7677-g8209aa5
processr.c File Reference
#include "processr.h"
#include <debug.h>
Include dependency graph for processr.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

static VOID NTAPI ProcessorUnload (IN PDRIVER_OBJECT DriverObject)
 
static NTSTATUS NTAPI ProcessorPower (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 
NTSTATUS NTAPI DriverEntry (IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file processr.c.

Function Documentation

◆ DriverEntry()

NTSTATUS NTAPI DriverEntry ( IN PDRIVER_OBJECT  DriverObject,
IN PUNICODE_STRING  RegistryPath 
)

Definition at line 52 of file processr.c.

55{
56 DPRINT("Processr: DriverEntry()\n");
57
58 DriverObject->MajorFunction[IRP_MJ_PNP] = ProcessorPnp;
60
61 DriverObject->DriverExtension->AddDevice = ProcessorAddDevice;
62 DriverObject->DriverUnload = ProcessorUnload;
63
64 return STATUS_SUCCESS;
65}
#define IRP_MJ_PNP
Definition: cdrw_usr.h:52
NTSTATUS NTAPI ProcessorAddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT Pdo)
Definition: pnp.c:364
NTSTATUS NTAPI ProcessorPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pnp.c:262
static NTSTATUS NTAPI ProcessorPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: processr.c:32
static VOID NTAPI ProcessorUnload(IN PDRIVER_OBJECT DriverObject)
Definition: processr.c:22
#define STATUS_SUCCESS
Definition: shellext.h:65
#define DPRINT
Definition: sndvol32.h:71
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
#define IRP_MJ_POWER

◆ ProcessorPower()

static NTSTATUS NTAPI ProcessorPower ( IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp 
)
static

Definition at line 32 of file processr.c.

35{
36// PIO_STACK_LOCATION IrpSp;
37// NTSTATUS Status = Irp->IoStatus.Status;
38 PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
39
40 DPRINT("ProcessorPower()\n");
41
42// IrpSp = IoGetCurrentIrpStackLocation(Irp);
43
46 return PoCallDriver(DeviceExtension->LowerDevice, Irp);
47}
_In_ PIRP Irp
Definition: csq.h:116
#define IoSkipCurrentIrpStackLocation(Irp)
Definition: ntifs_ex.h:421
VOID NTAPI PoStartNextPowerIrp(IN PIRP Irp)
Definition: power.c:758
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055

Referenced by DriverEntry().

◆ ProcessorUnload()

static VOID NTAPI ProcessorUnload ( IN PDRIVER_OBJECT  DriverObject)
static

Definition at line 22 of file processr.c.

24{
25 DPRINT("ProcessorUnload()\n");
26}

Referenced by DriverEntry().