From 24af17846d14b290aa1d90e37e98c4cbe9e173e1 Mon Sep 17 00:00:00 2001 From: pravic Date: Tue, 12 Apr 2016 18:12:52 +0300 Subject: add winapi-km-rs docs --- doc/src/km/driver_object.rs.html | 176 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 doc/src/km/driver_object.rs.html (limited to 'doc/src/km/driver_object.rs.html') diff --git a/doc/src/km/driver_object.rs.html b/doc/src/km/driver_object.rs.html new file mode 100644 index 0000000..0b44205 --- /dev/null +++ b/doc/src/km/driver_object.rs.html @@ -0,0 +1,176 @@ + + + + + + + + + + driver_object.rs.html -- source + + + + + + + + + + + + + + + + + +
 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+
+//! Driver Object.
+
+use ::{NTSTATUS, UNICODE_STRING};
+use ::device_object::*;
+use ::irp::IRP;
+
+
+pub type PDRIVER_INITIALIZE = Option<extern "system" fn (_self: &mut DRIVER_OBJECT, &UNICODE_STRING) -> NTSTATUS>;
+pub type PDRIVER_STARTIO = Option<extern "system" fn (_self: &mut DRIVER_OBJECT, &IRP)>;
+pub type PDRIVER_UNLOAD = Option<extern "system" fn (_self: &mut DRIVER_OBJECT)>;
+
+
+/// Represents the image of a loaded kernel-mode driver.
+#[repr(C)]
+pub struct DRIVER_OBJECT
+{
+	pub Type: u16,
+	pub Size: u16,
+	pub DeviceObject: *mut DEVICE_OBJECT,
+	pub Flags: u32,
+	pub DriverStart: *const u8,
+	pub DriverSize: u32,
+	pub DriverSection: *const u8,
+	pub DriverExtension: *mut u8,
+	pub DriverName: UNICODE_STRING,
+	pub HardwareDatabase: *const UNICODE_STRING,
+	pub FastIoDispatch: *mut u8,
+	pub DriverInit: PDRIVER_INITIALIZE,
+	pub DriverStartIo: PDRIVER_STARTIO,
+	/// The entry point for the driver's Unload routine, if any.
+	pub DriverUnload: PDRIVER_UNLOAD,
+	/// A dispatch table consisting of an array of entry points for the driver's `DispatchXxx` routines.
+	pub MajorFunction: [PDRIVER_DISPATCH; 28],
+}
+
+
+ + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3