uninstall_protocol_interface

Function uninstall_protocol_interface 

Source
pub unsafe fn uninstall_protocol_interface(
    handle: Handle,
    protocol: &Guid,
    interface: *const c_void,
) -> Result<()>
Expand description

Removes a protocol interface from a device handle.

§Safety

The caller is responsible for ensuring that there are no references to a protocol interface that has been removed. Some protocols may not be able to be removed as there is no information available regarding the references. This includes Console I/O, Block I/O, Disk I/o, and handles to device protocols.

The caller is responsible for ensuring that they pass a valid Guid for protocol.

§Errors