Trait itunes_com::sys::IITSourceCollection_Impl
source · pub trait IITSourceCollection_Impl: Sized + IDispatch_Impl {
// Required methods
unsafe fn Count(&self, Count: *mut i32) -> HRESULT;
unsafe fn Item(
&self,
Index: i32,
iSource: *mut Option<IITSource>
) -> HRESULT;
unsafe fn ItemByName(
&self,
Name: BSTR,
iSource: *mut Option<IITSource>
) -> HRESULT;
unsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT;
unsafe fn ItemByPersistentID(
&self,
highID: i32,
lowID: i32,
iSource: *mut Option<IITSource>
) -> HRESULT;
}Required Methods§
sourceunsafe fn Count(&self, Count: *mut i32) -> HRESULT
unsafe fn Count(&self, Count: *mut i32) -> HRESULT
Returns the number of sources in the collection.
sourceunsafe fn Item(&self, Index: i32, iSource: *mut Option<IITSource>) -> HRESULT
unsafe fn Item(&self, Index: i32, iSource: *mut Option<IITSource>) -> HRESULT
Returns an IITSource object corresponding to the given index (1-based).
sourceunsafe fn ItemByName(
&self,
Name: BSTR,
iSource: *mut Option<IITSource>
) -> HRESULT
unsafe fn ItemByName( &self, Name: BSTR, iSource: *mut Option<IITSource> ) -> HRESULT
Returns an IITSource object with the specified name.
sourceunsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT
unsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT
Returns an IEnumVARIANT object which can enumerate the collection.
Note: I have not figured out how to use it (calling .Skip(1) on the returned IEnumVARIANT causes a STATUS_ACCESS_VIOLATION).
Feel free to open an issue or a pull request to fix this.