Struct IWMPContentPartner
pub struct IWMPContentPartner(/* private fields */);
Implementations§
§impl IWMPContentPartner
impl IWMPContentPartner
pub unsafe fn SetCallback<P0>(&self, pcallback: P0) -> Result<()>where
P0: Param<IWMPContentPartnerCallback>,
pub unsafe fn Notify( &self, type: WMPPartnerNotification, pcontext: *const VARIANT, ) -> Result<()>
pub unsafe fn GetItemInfo( &self, bstrinfoname: &BSTR, pcontext: *const VARIANT, ) -> Result<VARIANT>
pub unsafe fn GetContentPartnerInfo( &self, bstrinfoname: &BSTR, ) -> Result<VARIANT>
pub unsafe fn GetCommands( &self, location: &BSTR, plocationcontext: *const VARIANT, itemlocation: &BSTR, prgitemids: &[u32], pcitemids: *mut u32, pprgitems: *mut *mut WMPContextMenuInfo, ) -> Result<()>
pub unsafe fn InvokeCommand( &self, dwcommandid: u32, location: &BSTR, plocationcontext: *const VARIANT, itemlocation: &BSTR, rgitemids: &[u32], ) -> Result<()>
pub unsafe fn CanBuySilent<P0>(
&self,
pinfo: P0,
pbstrtotalprice: *mut BSTR,
psilentok: *mut VARIANT_BOOL,
) -> Result<()>where
P0: Param<IWMPContentContainerList>,
pub unsafe fn Buy<P0>(&self, pinfo: P0, cookie: u32) -> Result<()>where
P0: Param<IWMPContentContainerList>,
pub unsafe fn GetStreamingURL( &self, st: WMPStreamingType, pstreamcontext: *const VARIANT, ) -> Result<BSTR>
pub unsafe fn Download<P0>(&self, pinfo: P0, cookie: u32) -> Result<()>where
P0: Param<IWMPContentContainerList>,
pub unsafe fn DownloadTrackComplete( &self, hrresult: HRESULT, contentid: u32, downloadtrackparam: &BSTR, ) -> Result<()>
pub unsafe fn RefreshLicense( &self, dwcookie: u32, flocal: VARIANT_BOOL, bstrurl: &BSTR, type: WMPStreamingType, contentid: u32, bstrrefreshreason: &BSTR, preasoncontext: *const VARIANT, ) -> Result<()>
pub unsafe fn GetCatalogURL( &self, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut BSTR, pexpirationdate: *mut VARIANT, ) -> Result<()>
pub unsafe fn GetTemplate( &self, task: WMPTaskType, location: &BSTR, pcontext: *const VARIANT, clicklocation: &BSTR, pclickcontext: *const VARIANT, bstrfilter: &BSTR, bstrviewparams: &BSTR, pbstrtemplateurl: *mut BSTR, ptemplatesize: *mut WMPTemplateSize, ) -> Result<()>
pub unsafe fn UpdateDevice(&self, bstrdevicename: &BSTR) -> Result<()>
pub unsafe fn GetListContents( &self, location: &BSTR, pcontext: *const VARIANT, bstrlisttype: &BSTR, bstrparams: &BSTR, dwlistcookie: u32, ) -> Result<()>
pub unsafe fn Login( &self, userinfo: BLOB, pwdinfo: BLOB, fusedcachedcreds: VARIANT_BOOL, foktocache: VARIANT_BOOL, ) -> Result<()>
pub unsafe fn Authenticate(&self, userinfo: BLOB, pwdinfo: BLOB) -> Result<()>
pub unsafe fn Logout(&self) -> Result<()>
pub unsafe fn SendMessage(&self, bstrmsg: &BSTR, bstrparam: &BSTR) -> Result<()>
pub unsafe fn StationEvent( &self, bstrstationeventtype: &BSTR, stationid: u32, playlistindex: u32, trackid: u32, trackdata: &BSTR, dwsecondsplayed: u32, ) -> Result<()>
pub unsafe fn CompareContainerListPrices<P0, P1>(
&self,
plistbase: P0,
plistcompare: P1,
) -> Result<i32>where
P0: Param<IWMPContentContainerList>,
P1: Param<IWMPContentContainerList>,
pub unsafe fn VerifyPermission( &self, bstrpermission: &BSTR, pcontext: *const VARIANT, ) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for IWMPContentPartner
impl CanInto<IUnknown> for IWMPContentPartner
§impl Clone for IWMPContentPartner
impl Clone for IWMPContentPartner
§fn clone(&self) -> IWMPContentPartner
fn clone(&self) -> IWMPContentPartner
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IWMPContentPartner
impl Debug for IWMPContentPartner
§impl From<&IWMPContentPartner> for &IUnknown
impl From<&IWMPContentPartner> for &IUnknown
§fn from(value: &IWMPContentPartner) -> Self
fn from(value: &IWMPContentPartner) -> Self
Converts to this type from the input type.
§impl From<IWMPContentPartner> for IUnknown
impl From<IWMPContentPartner> for IUnknown
§fn from(value: IWMPContentPartner) -> Self
fn from(value: IWMPContentPartner) -> Self
Converts to this type from the input type.
§impl Interface for IWMPContentPartner
impl Interface for IWMPContentPartner
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IWMPContentPartner
impl PartialEq for IWMPContentPartner
impl Eq for IWMPContentPartner
impl StructuralPartialEq for IWMPContentPartner
Auto Trait Implementations§
impl Freeze for IWMPContentPartner
impl RefUnwindSafe for IWMPContentPartner
impl !Send for IWMPContentPartner
impl !Sync for IWMPContentPartner
impl Unpin for IWMPContentPartner
impl UnwindSafe for IWMPContentPartner
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