pub struct HFILE(/* private fields */);
Available on crate feature
kernel
only.Expand description
Trait Implementations§
source§impl Handle for HFILE
impl Handle for HFILE
source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Creates a new handle object by wrapping a pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Returns a mutable reference to the underlying raw pointer. Read more
source§impl PartialEq for HFILE
impl PartialEq for HFILE
source§impl kernel_Hfile for HFILE
impl kernel_Hfile for HFILE
source§fn CreateFile(
file_name: &str,
desired_access: GENERIC,
share_mode: Option<FILE_SHARE>,
security_attributes: Option<&mut SECURITY_ATTRIBUTES<'_>>,
creation_disposition: DISPOSITION,
attributes: FILE_ATTRIBUTE,
flags: Option<FILE_FLAG>,
security: Option<FILE_SECURITY>,
hfile_template: Option<&HFILE>
) -> SysResult<(CloseHandleGuard<HFILE>, ERROR)>
fn CreateFile( file_name: &str, desired_access: GENERIC, share_mode: Option<FILE_SHARE>, security_attributes: Option<&mut SECURITY_ATTRIBUTES<'_>>, creation_disposition: DISPOSITION, attributes: FILE_ATTRIBUTE, flags: Option<FILE_FLAG>, security: Option<FILE_SECURITY>, hfile_template: Option<&HFILE> ) -> SysResult<(CloseHandleGuard<HFILE>, ERROR)>
CreateFile
function. Read moresource§fn CreateFileMapping(
&self,
mapping_attrs: Option<&mut SECURITY_ATTRIBUTES<'_>>,
protect: PAGE,
max_size: Option<u64>,
mapping_name: Option<&str>
) -> SysResult<CloseHandleGuard<HFILEMAP>>
fn CreateFileMapping( &self, mapping_attrs: Option<&mut SECURITY_ATTRIBUTES<'_>>, protect: PAGE, max_size: Option<u64>, mapping_name: Option<&str> ) -> SysResult<CloseHandleGuard<HFILEMAP>>
CreateFileMapping
function. Read moresource§fn GetFileInformationByHandle(
&self,
fi: &mut BY_HANDLE_FILE_INFORMATION
) -> SysResult<()>
fn GetFileInformationByHandle( &self, fi: &mut BY_HANDLE_FILE_INFORMATION ) -> SysResult<()>
GetFileInformationByHandle
function.source§fn GetFileSizeEx(&self) -> SysResult<u64>
fn GetFileSizeEx(&self) -> SysResult<u64>
GetFileSizeEx
function.source§fn GetFileTime(
&self,
creation_time: Option<&mut FILETIME>,
last_access_time: Option<&mut FILETIME>,
last_write_time: Option<&mut FILETIME>
) -> SysResult<()>
fn GetFileTime( &self, creation_time: Option<&mut FILETIME>, last_access_time: Option<&mut FILETIME>, last_write_time: Option<&mut FILETIME> ) -> SysResult<()>
GetFileTime
function.source§fn GetFileType(&self) -> SysResult<FILE_TYPE>
fn GetFileType(&self) -> SysResult<FILE_TYPE>
GetFileType
function.source§fn LockFile(
&self,
offset: u64,
num_bytes_to_lock: u64
) -> SysResult<UnlockFileGuard<'_, Self>>
fn LockFile( &self, offset: u64, num_bytes_to_lock: u64 ) -> SysResult<UnlockFileGuard<'_, Self>>
source§fn SetEndOfFile(&self) -> SysResult<()>
fn SetEndOfFile(&self) -> SysResult<()>
SetEndOfFile
function.source§fn SetFilePointerEx(
&self,
distance_to_move: i64,
move_method: FILE_STARTING_POINT
) -> SysResult<i64>
fn SetFilePointerEx( &self, distance_to_move: i64, move_method: FILE_STARTING_POINT ) -> SysResult<i64>
SetFilePointerEx
function.impl Eq for HFILE
impl Send for HFILE
impl StructuralPartialEq for HFILE
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more