pub struct ICLRRuntimeInfo(/* private fields */);Expand description
This struct represents the COM ICLRRuntimeInfo interface;
Implementations§
Source§impl ICLRRuntimeInfo
impl ICLRRuntimeInfo
Sourcepub fn is_started(&self) -> bool
pub fn is_started(&self) -> bool
Checks if the CLR runtime has been started.
Sourcepub fn IsLoadable(&self) -> Result<BOOL>
pub fn IsLoadable(&self) -> Result<BOOL>
Checks if the .NET runtime is loadable in the current process.
Sourcepub fn GetInterface<T>(&self, rclsid: *const GUID) -> Result<T>where
T: Interface,
pub fn GetInterface<T>(&self, rclsid: *const GUID) -> Result<T>where
T: Interface,
Retrieves a COM interface by its class identifier.
Sourcepub fn GetVersionString(
&self,
pwzbuffer: PWSTR,
pcchbuffer: *mut u32,
) -> Result<()>
pub fn GetVersionString( &self, pwzbuffer: PWSTR, pcchbuffer: *mut u32, ) -> Result<()>
Retrieves the version string of the CLR runtime.
Sourcepub fn GetRuntimeDirectory(
&self,
pwzbuffer: PWSTR,
pcchbuffer: *mut u32,
) -> Result<()>
pub fn GetRuntimeDirectory( &self, pwzbuffer: PWSTR, pcchbuffer: *mut u32, ) -> Result<()>
Retrieves the directory where the CLR runtime is installed.
Sourcepub fn IsLoaded(&self, hndProcess: HANDLE) -> Result<BOOL>
pub fn IsLoaded(&self, hndProcess: HANDLE) -> Result<BOOL>
Checks if the runtime is loaded in a specified process.
Sourcepub fn LoadErrorString(
&self,
iResourceID: u32,
pwzBuffer: PWSTR,
pcchBuffer: *mut u32,
iLocaleID: i32,
) -> Result<()>
pub fn LoadErrorString( &self, iResourceID: u32, pwzBuffer: PWSTR, pcchBuffer: *mut u32, iLocaleID: i32, ) -> Result<()>
Loads an error string by its resource ID.
Sourcepub fn LoadLibraryA(&self, pwzDllName: PCWSTR) -> Result<HMODULE>
pub fn LoadLibraryA(&self, pwzDllName: PCWSTR) -> Result<HMODULE>
Loads a DLL by name.
Sourcepub fn GetProcAddress(&self, pszProcName: &str) -> Result<*mut c_void>
pub fn GetProcAddress(&self, pszProcName: &str) -> Result<*mut c_void>
Retrieves the address of a procedure in a loaded DLL.
Sourcepub fn SetDefaultStartupFlags(
&self,
dwstartupflags: u32,
pwzhostconfigfile: PCWSTR,
) -> Result<()>
pub fn SetDefaultStartupFlags( &self, dwstartupflags: u32, pwzhostconfigfile: PCWSTR, ) -> Result<()>
Sets the default startup flags for the runtime.
Sourcepub fn GetDefaultStartupFlags(
&self,
pdwstartupflags: *mut u32,
pwzhostconfigfile: PWSTR,
pcchhostconfigfile: *mut u32,
) -> Result<()>
pub fn GetDefaultStartupFlags( &self, pdwstartupflags: *mut u32, pwzhostconfigfile: PWSTR, pcchhostconfigfile: *mut u32, ) -> Result<()>
Retrieves the default startup flags for the runtime.
Sourcepub fn BindAsLegacyV2Runtime(&self) -> Result<()>
pub fn BindAsLegacyV2Runtime(&self) -> Result<()>
Configures the runtime to behave as a legacy v2 runtime.
Trait Implementations§
Source§impl Clone for ICLRRuntimeInfo
impl Clone for ICLRRuntimeInfo
Source§fn clone(&self) -> ICLRRuntimeInfo
fn clone(&self) -> ICLRRuntimeInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ICLRRuntimeInfo
impl Debug for ICLRRuntimeInfo
Source§impl Deref for ICLRRuntimeInfo
impl Deref for ICLRRuntimeInfo
Source§impl Interface for ICLRRuntimeInfo
impl Interface for ICLRRuntimeInfo
Source§const IID: GUID
const IID: GUID
The interface identifier (IID) for the ICLRRuntimeInfo COM interface.
This GUID is used to identify the ICLRRuntimeInfo interface when calling
COM methods like QueryInterface. It is defined based on the standard
.NET CLR IID for the ICLRRuntimeInfo interface.
Source§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Interface implementation.Source§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Source§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
QueryInterface. Read moreSource§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
&dyn Any]. Read moreSource§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
&dyn Any]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl, not the inner &MyApp object. Read moreSource§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
&dyn Any]. It returns a reference to the “outer”
object, e.g. MyApp_Impl, not the inner MyApp object. Read moreSource§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Weak reference to this object.Source§unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
QueryInterface on this interface Read moreSource§fn to_ref(&self) -> InterfaceRef<'_, Self>
fn to_ref(&self) -> InterfaceRef<'_, Self>
InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically,
and eliminates the need for dynamic reference count adjustments (AddRef/Release).