29 _In_ PDRIVER_OBJECT DriverObject,
30 _In_ PUNICODE_STRING RegistryPath
34 WDF_DRIVER_CONFIG config;
35 WDF_OBJECT_ATTRIBUTES attributes;
37 WDF_OBJECT_ATTRIBUTES_INIT(&attributes);
42 status = WdfDriverCreate(DriverObject, RegistryPath, &attributes, &config, WDF_NO_HANDLE);
43 if (!NT_SUCCESS(status))
46 DEBUG(
"DriverEntry: success\n");
47 return STATUS_SUCCESS;
52 _In_ WDFDRIVER Driver,
53 _Inout_ PWDFDEVICE_INIT DeviceInit
57 WDF_PNPPOWER_EVENT_CALLBACKS pnpPowerCallbacks;
59 UNREFERENCED_PARAMETER(Driver);
61 WDF_PNPPOWER_EVENT_CALLBACKS_INIT(&pnpPowerCallbacks);
65 WdfDeviceInitSetPnpPowerEventCallbacks(DeviceInit, &pnpPowerCallbacks);
68 if (!NT_SUCCESS(status))
71 DEBUG(
"bareflankEvtDeviceAdd: success\n");
72 return STATUS_SUCCESS;
77 _In_ WDFOBJECT DriverObject
80 UNREFERENCED_PARAMETER(DriverObject);
84 DEBUG(
"bareflankEvtDriverContextCleanup: success\n");
89 _In_ WDFDEVICE Device,
90 _In_ WDF_POWER_DEVICE_STATE PreviousState
93 UNREFERENCED_PARAMETER(Device);
94 UNREFERENCED_PARAMETER(PreviousState);
96 DEBUG(
"bareflankEvtDeviceD0Entry: success\n");
97 return STATUS_SUCCESS;
102 _In_ WDFDEVICE Device,
103 _In_ WDF_POWER_DEVICE_STATE TargetState
106 UNREFERENCED_PARAMETER(Device);
107 UNREFERENCED_PARAMETER(TargetState);
111 DEBUG(
"bareflankEvtDeviceD0Entry: success\n");
112 return STATUS_SUCCESS;
int64_t common_fini(void)
NTSTATUS bareflankEvtDeviceD0Entry(_In_ WDFDEVICE Device, _In_ WDF_POWER_DEVICE_STATE PreviousState)
NTSTATUS bareflankCreateDevice(_Inout_ PWDFDEVICE_INIT DeviceInit)
NTSTATUS bareflankEvtDeviceAdd(_In_ WDFDRIVER Driver, _Inout_ PWDFDEVICE_INIT DeviceInit)
NTSTATUS DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING RegistryPath)
NTSTATUS bareflankEvtDeviceD0Exit(_In_ WDFDEVICE Device, _In_ WDF_POWER_DEVICE_STATE TargetState)
VOID bareflankEvtDriverContextCleanup(_In_ WDFOBJECT DriverObject)