windows::Win32::Devices::PortableDevices

Trait IPortableDeviceContent_Impl

pub trait IPortableDeviceContent_Impl: IUnknownImpl {
    // Required methods
    fn EnumObjects(
        &self,
        dwflags: u32,
        pszparentobjectid: &PCWSTR,
        pfilter: Ref<'_, IPortableDeviceValues>,
    ) -> Result<IEnumPortableDeviceObjectIDs>;
    fn Properties(&self) -> Result<IPortableDeviceProperties>;
    fn Transfer(&self) -> Result<IPortableDeviceResources>;
    fn CreateObjectWithPropertiesOnly(
        &self,
        pvalues: Ref<'_, IPortableDeviceValues>,
        ppszobjectid: *mut PWSTR,
    ) -> Result<()>;
    fn CreateObjectWithPropertiesAndData(
        &self,
        pvalues: Ref<'_, IPortableDeviceValues>,
        ppdata: OutRef<'_, IStream>,
        pdwoptimalwritebuffersize: *mut u32,
        ppszcookie: *mut PWSTR,
    ) -> Result<()>;
    fn Delete(
        &self,
        dwoptions: u32,
        pobjectids: Ref<'_, IPortableDevicePropVariantCollection>,
        ppresults: OutRef<'_, IPortableDevicePropVariantCollection>,
    ) -> Result<()>;
    fn GetObjectIDsFromPersistentUniqueIDs(
        &self,
        ppersistentuniqueids: Ref<'_, IPortableDevicePropVariantCollection>,
    ) -> Result<IPortableDevicePropVariantCollection>;
    fn Cancel(&self) -> Result<()>;
    fn Move(
        &self,
        pobjectids: Ref<'_, IPortableDevicePropVariantCollection>,
        pszdestinationfolderobjectid: &PCWSTR,
        ppresults: OutRef<'_, IPortableDevicePropVariantCollection>,
    ) -> Result<()>;
    fn Copy(
        &self,
        pobjectids: Ref<'_, IPortableDevicePropVariantCollection>,
        pszdestinationfolderobjectid: &PCWSTR,
        ppresults: OutRef<'_, IPortableDevicePropVariantCollection>,
    ) -> Result<()>;
}

Required Methods§

fn EnumObjects( &self, dwflags: u32, pszparentobjectid: &PCWSTR, pfilter: Ref<'_, IPortableDeviceValues>, ) -> Result<IEnumPortableDeviceObjectIDs>

fn Properties(&self) -> Result<IPortableDeviceProperties>

fn Transfer(&self) -> Result<IPortableDeviceResources>

fn CreateObjectWithPropertiesOnly( &self, pvalues: Ref<'_, IPortableDeviceValues>, ppszobjectid: *mut PWSTR, ) -> Result<()>

fn CreateObjectWithPropertiesAndData( &self, pvalues: Ref<'_, IPortableDeviceValues>, ppdata: OutRef<'_, IStream>, pdwoptimalwritebuffersize: *mut u32, ppszcookie: *mut PWSTR, ) -> Result<()>

fn Delete( &self, dwoptions: u32, pobjectids: Ref<'_, IPortableDevicePropVariantCollection>, ppresults: OutRef<'_, IPortableDevicePropVariantCollection>, ) -> Result<()>

fn GetObjectIDsFromPersistentUniqueIDs( &self, ppersistentuniqueids: Ref<'_, IPortableDevicePropVariantCollection>, ) -> Result<IPortableDevicePropVariantCollection>

fn Cancel(&self) -> Result<()>

fn Move( &self, pobjectids: Ref<'_, IPortableDevicePropVariantCollection>, pszdestinationfolderobjectid: &PCWSTR, ppresults: OutRef<'_, IPortableDevicePropVariantCollection>, ) -> Result<()>

fn Copy( &self, pobjectids: Ref<'_, IPortableDevicePropVariantCollection>, pszdestinationfolderobjectid: &PCWSTR, ppresults: OutRef<'_, IPortableDevicePropVariantCollection>, ) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§