aboutsummaryrefslogtreecommitdiff
path: root/src/file_object.rs
diff options
context:
space:
mode:
authorpravic <[email protected]>2016-04-12 16:39:37 +0300
committerpravic <[email protected]>2016-04-12 16:39:37 +0300
commit28ff216899e95a6a9756bcbe580f28ed8ce61228 (patch)
treebbf00e3c5f3b440db5ddb3f86b6d3a893349cee0 /src/file_object.rs
parentgit ignore (diff)
downloadwinapi-kmd-rs-28ff216899e95a6a9756bcbe580f28ed8ce61228.tar.xz
winapi-kmd-rs-28ff216899e95a6a9756bcbe580f28ed8ce61228.zip
Windows Kernel-Mode library
Diffstat (limited to 'src/file_object.rs')
-rw-r--r--src/file_object.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/file_object.rs b/src/file_object.rs
new file mode 100644
index 0000000..b0d24a2
--- /dev/null
+++ b/src/file_object.rs
@@ -0,0 +1,15 @@
+//! File Object.
+
+use ::device_object::PDEVICE_OBJECT;
+
+pub type PFILE_OBJECT = *mut FILE_OBJECT;
+
+/// The `FILE_OBJECT` structure is used by the system to represent a file object.
+#[repr(C)]
+pub struct FILE_OBJECT
+{
+ Type: u16,
+ Size: u16,
+ DeviceObject: PDEVICE_OBJECT,
+ // ...
+}