pub struct PAGE(/* private fields */);
kernel
only.Expand description
HFILE::CreateFileMapping
protect
(u32
).
Implementations§
source§impl PAGE
impl PAGE
sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl PAGE
impl PAGE
sourcepub const EXECUTE_READ: Self = _
pub const EXECUTE_READ: Self = _
Allows views to be mapped for read-only copy-on-write or execute access.
The file handle must be created with the
GENERIC::READ
and
GENERIC::EXECUTE
access rights.
sourcepub const EXECUTE_READWRITE: Self = _
pub const EXECUTE_READWRITE: Self = _
Allows views to be mapped for read-only copy-on-write read/write or execute access.
The file handle must be created with the
GENERIC::READ
,
GENERIC::WRITE
and
GENERIC::EXECUTE
access rights.
sourcepub const EXECUTE_WRITECOPY: Self = _
pub const EXECUTE_WRITECOPY: Self = _
Allows views to be mapped for read-only copy-on-write or execute access. This value is equivalent to PAGE_EXECUTE_READ.
The file handle must be created with the
GENERIC::READ
and
GENERIC::EXECUTE
access rights.
sourcepub const READONLY: Self = _
pub const READONLY: Self = _
Allows views to be mapped for read-only or copy-on-write access. An attempt to write to a specific region results in an access violation.
The file handle must be created with the
GENERIC::READ
access right.
sourcepub const READWRITE: Self = _
pub const READWRITE: Self = _
Allows views to be mapped for read-only copy-on-write or read/write access.
The file handle must be created with the
GENERIC::READ
and
GENERIC::WRITE
access rights.
sourcepub const WRITECOPY: Self = _
pub const WRITECOPY: Self = _
Allows views to be mapped for read-only or copy-on-write access. This
value is equivalent to PAGE::READONLY
.
The file handle must be created with the
GENERIC::READ
access right.
pub const SEC_COMMIT: Self = _
pub const SEC_IMAGE: Self = _
pub const SEC_IMAGE_NO_EXECUTE: Self = _
pub const SEC_LARGE_PAGES: Self = _
pub const SEC_NOCACHE: Self = _
pub const SEC_RESERVE: Self = _
pub const SEC_WRITECOMBINE: Self = _
Trait Implementations§
source§impl IntUnderlying for PAGE
impl IntUnderlying for PAGE
source§impl Ord for PAGE
impl Ord for PAGE
source§impl PartialEq for PAGE
impl PartialEq for PAGE
source§impl PartialOrd for PAGE
impl PartialOrd for PAGE
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more