mirror of
https://github.com/Bareflank/hypervisor
synced 2026-08-17 06:23:04 -04:00
This patch provides initial support for Windows. It also addresses some issues with transient exeuction attacks (specifically straight line attacks)
42 lines
773 B
C
42 lines
773 B
C
/*++
|
|
|
|
Module Name:
|
|
|
|
device.h
|
|
|
|
Abstract:
|
|
|
|
This file contains the device definitions.
|
|
|
|
Environment:
|
|
|
|
Kernel-mode Driver Framework
|
|
|
|
--*/
|
|
|
|
EXTERN_C_START
|
|
|
|
//
|
|
// The device context performs the same job as
|
|
// a WDM device extension in the driver frameworks
|
|
//
|
|
typedef struct _DEVICE_CONTEXT
|
|
{
|
|
ULONG PrivateDeviceData; // just a placeholder
|
|
|
|
} DEVICE_CONTEXT, *PDEVICE_CONTEXT;
|
|
|
|
//
|
|
// This macro will generate an inline function called DeviceGetContext
|
|
// which will be used to get a pointer to the device context memory
|
|
// in a type safe manner.
|
|
//
|
|
WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(DEVICE_CONTEXT, DeviceGetContext)
|
|
|
|
//
|
|
// Function to initialize the device and its callbacks
|
|
//
|
|
NTSTATUS
|
|
loaderCreateDevice(_Inout_ PWDFDEVICE_INIT DeviceInit);
|
|
|
|
EXTERN_C_END
|