123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492 |
- /*** Autogenerated by WIDL 7.7 from include/windows.foundation.collections.idl - Do not edit ***/
- #ifdef _WIN32
- #ifndef __REQUIRED_RPCNDR_H_VERSION__
- #define __REQUIRED_RPCNDR_H_VERSION__ 475
- #endif
- #include <rpc.h>
- #include <rpcndr.h>
- #endif
- #ifndef COM_NO_WINDOWS_H
- #include <windows.h>
- #include <ole2.h>
- #endif
- #ifndef __windows_foundation_collections_h__
- #define __windows_foundation_collections_h__
- /* Forward declarations */
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- template <class T>
- struct IEventHandler_impl;
- template <class T>
- struct IEventHandler : IEventHandler_impl<T> {};
- }
- }
- }
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- template <class TResult>
- struct IAsyncOperationCompletedHandler_impl;
- template <class TResult>
- struct IAsyncOperationCompletedHandler : IAsyncOperationCompletedHandler_impl<TResult> {};
- }
- }
- }
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- template <class TResult>
- struct IAsyncOperation_impl;
- template <class TResult>
- struct IAsyncOperation : IAsyncOperation_impl<TResult> {};
- }
- }
- }
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- template <class TSender, class TArgs>
- struct ITypedEventHandler_impl;
- template <class TSender, class TArgs>
- struct ITypedEventHandler : ITypedEventHandler_impl<TSender, TArgs> {};
- }
- }
- }
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- template <class T>
- struct IReference_impl;
- template <class T>
- struct IReference : IReference_impl<T> {};
- }
- }
- }
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class T>
- struct IIterator_impl;
- template <class T>
- struct IIterator : IIterator_impl<T> {};
- }
- }
- }
- }
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class T>
- struct IIterable_impl;
- template <class T>
- struct IIterable : IIterable_impl<T> {};
- }
- }
- }
- }
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class K, class V>
- struct IKeyValuePair_impl;
- template <class K, class V>
- struct IKeyValuePair : IKeyValuePair_impl<K, V> {};
- }
- }
- }
- }
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class K, class V>
- struct IMapView_impl;
- template <class K, class V>
- struct IMapView : IMapView_impl<K, V> {};
- }
- }
- }
- }
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class T>
- struct IVectorView_impl;
- template <class T>
- struct IVectorView : IVectorView_impl<T> {};
- }
- }
- }
- }
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class T>
- struct IVector_impl;
- template <class T>
- struct IVector : IVector_impl<T> {};
- }
- }
- }
- }
- #endif
- /* Headers for imported files */
- #include <inspectable.h>
- #include <asyncinfo.h>
- #include <windowscontracts.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef __cplusplus
- } /* extern "C" */
- namespace ABI { namespace Windows { namespace Foundation { namespace Internal {
- template <class T> struct GetAbiType { typedef T type; };
- template <class T> struct GetLogicalType { typedef T type; };
- template <class L, class A> struct AggregateType {};
- template <class L, class A> struct GetAbiType<AggregateType<L, A> > { typedef A type; };
- template <class L, class A> struct GetLogicalType<AggregateType<L, A> > { typedef L type; };
- }}}}
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- template <class T>
- struct IEventHandler_impl : IUnknown
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<T>::type T_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<T>::type T_logical;
- public:
- typedef T T_complex;
- virtual HRESULT STDMETHODCALLTYPE Invoke(IInspectable *sender,T_abi args) = 0;
- };
- }
- }
- }
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- template <class TResult>
- struct IAsyncOperationCompletedHandler_impl : IUnknown
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<TResult>::type TResult_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<TResult>::type TResult_logical;
- public:
- typedef TResult TResult_complex;
- virtual HRESULT STDMETHODCALLTYPE Invoke(IAsyncOperation<TResult_logical> *info,AsyncStatus status) = 0;
- };
- }
- }
- }
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- template <class TResult>
- struct IAsyncOperation_impl : IInspectable
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<TResult>::type TResult_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<TResult>::type TResult_logical;
- public:
- typedef TResult TResult_complex;
- virtual HRESULT STDMETHODCALLTYPE put_Completed(IAsyncOperationCompletedHandler<TResult_logical> *handler) = 0;
- virtual HRESULT STDMETHODCALLTYPE get_Completed(IAsyncOperationCompletedHandler<TResult_logical> **handler) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetResults(TResult_abi *results) = 0;
- };
- }
- }
- }
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- template <class TSender, class TArgs>
- struct ITypedEventHandler_impl : IUnknown
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<TSender>::type TSender_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<TSender>::type TSender_logical;
- typedef typename Windows::Foundation::Internal::GetAbiType<TArgs>::type TArgs_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<TArgs>::type TArgs_logical;
- public:
- typedef TSender TSender_complex;
- typedef TArgs TArgs_complex;
- virtual HRESULT STDMETHODCALLTYPE Invoke(TSender_abi sender,TArgs_abi args) = 0;
- };
- }
- }
- }
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- template <class T>
- struct IReference_impl : IInspectable
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<T>::type T_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<T>::type T_logical;
- public:
- typedef T T_complex;
- virtual HRESULT STDMETHODCALLTYPE get_Value(T_abi *value) = 0;
- };
- }
- }
- }
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class T>
- struct IIterator_impl : IInspectable
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<T>::type T_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<T>::type T_logical;
- public:
- typedef T T_complex;
- virtual HRESULT STDMETHODCALLTYPE get_Current(T_abi *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE get_HasCurrent(WINBOOL *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE MoveNext(WINBOOL *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetMany(UINT32 items_size,T_abi *items,UINT32 *value) = 0;
- };
- }
- }
- }
- }
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class T>
- struct IIterable_impl : IInspectable
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<T>::type T_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<T>::type T_logical;
- public:
- typedef T T_complex;
- virtual HRESULT STDMETHODCALLTYPE First(IIterator<T_logical> **value) = 0;
- };
- }
- }
- }
- }
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class K, class V>
- struct IKeyValuePair_impl : IInspectable
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<K>::type K_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<K>::type K_logical;
- typedef typename Windows::Foundation::Internal::GetAbiType<V>::type V_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<V>::type V_logical;
- public:
- typedef K K_complex;
- typedef V V_complex;
- virtual HRESULT STDMETHODCALLTYPE get_Key(K_abi *key) = 0;
- virtual HRESULT STDMETHODCALLTYPE get_Value(V_abi *value) = 0;
- };
- }
- }
- }
- }
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class K, class V>
- struct IMapView_impl : IInspectable
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<K>::type K_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<K>::type K_logical;
- typedef typename Windows::Foundation::Internal::GetAbiType<V>::type V_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<V>::type V_logical;
- public:
- typedef K K_complex;
- typedef V V_complex;
- virtual HRESULT STDMETHODCALLTYPE Lookup(K_abi key,V_abi *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE get_Size(unsigned int *size) = 0;
- virtual HRESULT STDMETHODCALLTYPE HasKey(K_abi key,boolean *found) = 0;
- virtual HRESULT STDMETHODCALLTYPE Split(IMapView<K_logical, V_logical> **first,IMapView<K_logical, V_logical> **second) = 0;
- };
- }
- }
- }
- }
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class T>
- struct IVectorView_impl : IInspectable
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<T>::type T_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<T>::type T_logical;
- public:
- typedef T T_complex;
- virtual HRESULT STDMETHODCALLTYPE GetAt(UINT32 index,T_abi *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE get_Size(UINT32 *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE IndexOf(T_abi element,UINT32 *index,BOOLEAN *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetMany(UINT32 start_index,UINT32 items_size,T_abi *items,UINT32 *value) = 0;
- };
- }
- }
- }
- }
- extern "C" {
- #endif
- #if defined(__cplusplus) && !defined(CINTERFACE)
- } /* extern "C" */
- namespace ABI {
- namespace Windows {
- namespace Foundation {
- namespace Collections {
- template <class T>
- struct IVector_impl : IInspectable
- {
- private:
- typedef typename Windows::Foundation::Internal::GetAbiType<T>::type T_abi;
- typedef typename Windows::Foundation::Internal::GetLogicalType<T>::type T_logical;
- public:
- typedef T T_complex;
- virtual HRESULT STDMETHODCALLTYPE GetAt(UINT32 index,T_abi *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE get_Size(UINT32 *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetView(IVectorView<T_logical> **value) = 0;
- virtual HRESULT STDMETHODCALLTYPE IndexOf(T_abi element,UINT32 *index,BOOLEAN *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetAt(UINT32 index,T_abi value) = 0;
- virtual HRESULT STDMETHODCALLTYPE InsertAt(UINT32 index,T_abi value) = 0;
- virtual HRESULT STDMETHODCALLTYPE RemoveAt(UINT32 index) = 0;
- virtual HRESULT STDMETHODCALLTYPE Append(T_abi value) = 0;
- virtual HRESULT STDMETHODCALLTYPE RemoveAtEnd() = 0;
- virtual HRESULT STDMETHODCALLTYPE Clear() = 0;
- virtual HRESULT STDMETHODCALLTYPE GetMany(UINT32 start_index,UINT32 items_size,T_abi *items,UINT32 *value) = 0;
- virtual HRESULT STDMETHODCALLTYPE ReplaceAll(UINT32 count,T_abi *items) = 0;
- };
- }
- }
- }
- }
- extern "C" {
- #endif
- /* Begin additional prototypes for all interfaces */
- /* End additional prototypes */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __windows_foundation_collections_h__ */
|