Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayKernel::CKeDriver Struct Reference

#include <cKernel.h>

Public Member Functions

void InitDriver (PDRIVER_OBJECT pDriverObject)
 
bool IsDriverValid () const
 
CKeDriverObjectget_DriverObject () const
 
CKeDeviceObjectget_DeviceFirst () const
 
CKeStringUget_RegistryPath ()
 
NTSTATUS CreateDevice (ULONG uDeviceExtensionSize, IN PUNICODE_STRING puDeviceName OPTIONAL, IN DEVICE_TYPE eDeviceType, IN ULONG uDeviceCharacteristics, IN bool bExclusive, OUT PDEVICE_OBJECT *ppDeviceObject)
 

Detailed Description

Common base for the singleton driver structure. similar to _DRIVER_EXTENSION (sort of)

Note
static destructors don't really work in kernel mode apps. MS makes something called CDriverObject ?? see: http://www.microsoft.com/msj/archive/S35B.aspx

Member Function Documentation

◆ CreateDevice()

NTSTATUS GrayKernel::CKeDriver::CreateDevice ( ULONG  uDeviceExtensionSize,
IN PUNICODE_STRING puDeviceName  OPTIONAL,
IN DEVICE_TYPE  eDeviceType,
IN ULONG  uDeviceCharacteristics,
IN bool  bExclusive,
OUT PDEVICE_OBJECT *  ppDeviceObject 
)
inline

◆ get_DeviceFirst()

CKeDeviceObject* GrayKernel::CKeDriver::get_DeviceFirst ( ) const
inline

◆ get_DriverObject()

CKeDriverObject* GrayKernel::CKeDriver::get_DriverObject ( ) const
inline

◆ get_RegistryPath()

CKeStringU& GrayKernel::CKeDriver::get_RegistryPath ( )
inline

◆ InitDriver()

void GrayKernel::CKeDriver::InitDriver ( PDRIVER_OBJECT  pDriverObject)
inline

◆ IsDriverValid()

bool GrayKernel::CKeDriver::IsDriverValid ( ) const
inline

The documentation for this struct was generated from the following file: