Struct winsafe::HVERSIONINFO
source · pub struct HVERSIONINFO(/* private fields */);
Available on crate feature
version
only.Expand description
Handle to a version info block.
Originally just a pointer to a memory block.
Trait Implementations§
source§impl Debug for HVERSIONINFO
impl Debug for HVERSIONINFO
source§impl Display for HVERSIONINFO
impl Display for HVERSIONINFO
source§impl Handle for HVERSIONINFO
impl Handle for HVERSIONINFO
source§const NULL: Self = _
const NULL: Self = _
Available on crate feature
kernel
only.The null, uninitialized handle; equals to
0
.source§const INVALID: Self = _
const INVALID: Self = _
Available on crate feature
kernel
only.The invalid handle; equals to
-1
. Read moresource§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
kernel
only.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
Available on crate feature
kernel
only.Returns a mutable reference to the underlying raw pointer. Read more
source§unsafe fn raw_copy(&self) -> Self
unsafe fn raw_copy(&self) -> Self
Available on crate feature
kernel
only.Returns a raw copy of the underlying handle pointer. Read more
source§impl Hash for HVERSIONINFO
impl Hash for HVERSIONINFO
source§impl LowerHex for HVERSIONINFO
impl LowerHex for HVERSIONINFO
source§impl PartialEq for HVERSIONINFO
impl PartialEq for HVERSIONINFO
source§fn eq(&self, other: &HVERSIONINFO) -> bool
fn eq(&self, other: &HVERSIONINFO) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl UpperHex for HVERSIONINFO
impl UpperHex for HVERSIONINFO
source§impl version_Hversioninfo for HVERSIONINFO
impl version_Hversioninfo for HVERSIONINFO
source§fn GetFileVersionInfo(file_name: &str) -> SysResult<VersionInfoGuard>
fn GetFileVersionInfo(file_name: &str) -> SysResult<VersionInfoGuard>
GetFileVersionInfo
function. Read moresource§fn GetFileVersionInfoSize(file_name: &str) -> SysResult<u32>
fn GetFileVersionInfoSize(file_name: &str) -> SysResult<u32>
GetFileVersionInfoSize
function. Read moresource§fn langs_and_cps(&self) -> SysResult<&[(LANGID, CP)]>
fn langs_and_cps(&self) -> SysResult<&[(LANGID, CP)]>
Calls
HVERSIONINFO::VarQueryValue
to retrieve a reference to a slice with all languages and code pages. Read moresource§unsafe fn VarQueryValue<T>(&self, sub_block: &str) -> SysResult<(*const T, u32)>
unsafe fn VarQueryValue<T>(&self, sub_block: &str) -> SysResult<(*const T, u32)>
VarQueryValue
function. Read moresource§fn str_val(
&self,
lang_id: LANGID,
code_page: CP,
name: &str
) -> SysResult<String>
fn str_val( &self, lang_id: LANGID, code_page: CP, name: &str ) -> SysResult<String>
Calls
HVERSIONINFO::VarQueryValue
to retrieve a string value. Read moresource§fn version_info(&self) -> SysResult<&VS_FIXEDFILEINFO>
fn version_info(&self) -> SysResult<&VS_FIXEDFILEINFO>
Calls
HVERSIONINFO::VarQueryValue
to retrieve a reference to the fixed version block, if any.impl Eq for HVERSIONINFO
impl Send for HVERSIONINFO
impl StructuralPartialEq for HVERSIONINFO
Auto Trait Implementations§
impl RefUnwindSafe for HVERSIONINFO
impl !Sync for HVERSIONINFO
impl Unpin for HVERSIONINFO
impl UnwindSafe for HVERSIONINFO
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