11// Copyright (c) 0x5BFA. All rights reserved.
22// Licensed under the MIT License.
33
4- using System ;
54using System . Runtime . CompilerServices ;
65using System . Runtime . InteropServices ;
76using Windows . Win32 . Foundation ;
87
98namespace Windows . Win32 . System . Com
109{
1110 /// <summary>
12- /// Defines unmanaged raw vtable for the <see cref="ICustomDestinationList2 "/> interface.
11+ /// Defines unmanaged raw vtable for the <see cref="IInternalCustomDestinationList "/> interface.
1312 /// </summary>
1413 /// <remarks>
1514 /// - <a href="https://github.com/GigabyteProductions/classicshell/blob/HEAD/src/ClassicStartMenu/ClassicStartMenuDLL/JumpLists.cpp"/>
1615 /// </remarks>
17- public unsafe partial struct ICustomDestinationList2
16+ public unsafe partial struct IInternalCustomDestinationList
1817 {
1918#pragma warning disable CS0649 // Field 'field' is never assigned to, and will always have its default value 'value'
2019 private void * * lpVtbl ;
2120#pragma warning restore CS0649 // Field 'field' is never assigned to, and will always have its default value 'value'
2221
2322 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
2423 public HRESULT SetMinItems ( uint dwMinItems )
25- => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < ICustomDestinationList2 * , uint , int > ) lpVtbl [ 3 ] ) (
26- ( ICustomDestinationList2 * ) Unsafe . AsPointer ( ref this ) , dwMinItems ) ;
24+ => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < IInternalCustomDestinationList * , uint , int > ) lpVtbl [ 3 ] ) (
25+ ( IInternalCustomDestinationList * ) Unsafe . AsPointer ( ref this ) , dwMinItems ) ;
2726
2827 /// <summary>
29- /// Initializes this instance of <see cref="ICustomDestinationList2 "/> with the specified Application User Model ID (AMUID).
28+ /// Initializes this instance of <see cref="IInternalCustomDestinationList "/> with the specified Application User Model ID (AMUID).
3029 /// </summary>
31- /// <param name="pszAppID">The Application User Model ID to initialize this instance of <see cref="ICustomDestinationList2 "/> with.</param>
30+ /// <param name="pszAppID">The Application User Model ID to initialize this instance of <see cref="IInternalCustomDestinationList "/> with.</param>
3231 /// <returns>Returns <see cref="HRESULT.S_OK"/> if successful, or an error value otherwise.</returns>
3332 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
3433 public HRESULT SetApplicationID ( PCWSTR pszAppID )
35- => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < ICustomDestinationList2 * , PCWSTR , int > ) lpVtbl [ 4 ] ) (
36- ( ICustomDestinationList2 * ) Unsafe . AsPointer ( ref this ) , pszAppID ) ;
34+ => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < IInternalCustomDestinationList * , PCWSTR , int > ) lpVtbl [ 4 ] ) (
35+ ( IInternalCustomDestinationList * ) Unsafe . AsPointer ( ref this ) , pszAppID ) ;
3736
3837 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
3938 public HRESULT GetSlotCount ( uint * pdwSlotCount )
40- => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < ICustomDestinationList2 * , uint * , int > ) lpVtbl [ 5 ] ) (
41- ( ICustomDestinationList2 * ) Unsafe . AsPointer ( ref this ) , pdwSlotCount ) ;
39+ => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < IInternalCustomDestinationList * , uint * , int > ) lpVtbl [ 5 ] ) (
40+ ( IInternalCustomDestinationList * ) Unsafe . AsPointer ( ref this ) , pdwSlotCount ) ;
4241
4342 /// <summary>
4443 /// Gets the number of categories in the custom destination list.
@@ -47,8 +46,8 @@ public HRESULT GetSlotCount(uint* pdwSlotCount)
4746 /// <returns>Returns <see cref="HRESULT.S_OK"/> if successful, or an error value otherwise.</returns>
4847 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
4948 public HRESULT GetCategoryCount ( uint * pdwCategoryCount )
50- => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < ICustomDestinationList2 * , uint * , int > ) lpVtbl [ 6 ] ) (
51- ( ICustomDestinationList2 * ) Unsafe . AsPointer ( ref this ) , pdwCategoryCount ) ;
49+ => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < IInternalCustomDestinationList * , uint * , int > ) lpVtbl [ 6 ] ) (
50+ ( IInternalCustomDestinationList * ) Unsafe . AsPointer ( ref this ) , pdwCategoryCount ) ;
5251
5352 /// <summary>
5453 /// Gets the category at the specified index in the custom destination list.
@@ -59,13 +58,13 @@ public HRESULT GetCategoryCount(uint* pdwCategoryCount)
5958 /// <returns>Returns <see cref="HRESULT.S_OK"/> if successful, or an error value otherwise.</returns>
6059 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
6160 public HRESULT GetCategory ( uint index , GETCATFLAG flags , APPDESTCATEGORY * pCategory )
62- => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < ICustomDestinationList2 * , uint , GETCATFLAG , APPDESTCATEGORY * , int > ) lpVtbl [ 7 ] ) (
63- ( ICustomDestinationList2 * ) Unsafe . AsPointer ( ref this ) , index , flags , pCategory ) ;
61+ => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < IInternalCustomDestinationList * , uint , GETCATFLAG , APPDESTCATEGORY * , int > ) lpVtbl [ 7 ] ) (
62+ ( IInternalCustomDestinationList * ) Unsafe . AsPointer ( ref this ) , index , flags , pCategory ) ;
6463
6564 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
6665 public HRESULT DeleteCategory ( uint a1 , int a2 )
67- => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < ICustomDestinationList2 * , int > ) lpVtbl [ 8 ] ) (
68- ( ICustomDestinationList2 * ) Unsafe . AsPointer ( ref this ) ) ;
66+ => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < IInternalCustomDestinationList * , int > ) lpVtbl [ 8 ] ) (
67+ ( IInternalCustomDestinationList * ) Unsafe . AsPointer ( ref this ) ) ;
6968
7069 /// <summary>
7170 /// Enumerates the destinations at the specific index in the categories in the custom destinations.
@@ -76,23 +75,23 @@ public HRESULT DeleteCategory(uint a1, int a2)
7675 /// <returns>Returns <see cref="HRESULT.S_OK"/> if successful, or an error value otherwise.</returns>
7776 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
7877 public HRESULT EnumerateCategoryDestinations ( uint index , Guid * riid , void * * ppvObject )
79- => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < ICustomDestinationList2 * , uint , Guid * , void * * , int > ) lpVtbl [ 9 ] ) (
80- ( ICustomDestinationList2 * ) Unsafe . AsPointer ( ref this ) , index , riid , ppvObject ) ;
78+ => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < IInternalCustomDestinationList * , uint , Guid * , void * * , int > ) lpVtbl [ 9 ] ) (
79+ ( IInternalCustomDestinationList * ) Unsafe . AsPointer ( ref this ) , index , riid , ppvObject ) ;
8180
8281 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
8382 public HRESULT RemoveDestination ( IUnknown * pObject )
84- => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < ICustomDestinationList2 * , IUnknown * , int > ) lpVtbl [ 10 ] )
85- ( ( ICustomDestinationList2 * ) Unsafe . AsPointer ( ref this ) , pObject ) ;
83+ => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < IInternalCustomDestinationList * , IUnknown * , int > ) lpVtbl [ 10 ] )
84+ ( ( IInternalCustomDestinationList * ) Unsafe . AsPointer ( ref this ) , pObject ) ;
8685
8786 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
8887 public HRESULT HasListEx ( int * a1 , int * a2 )
89- => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < ICustomDestinationList2 * , int > ) lpVtbl [ 11 ] )
90- ( ( ICustomDestinationList2 * ) Unsafe . AsPointer ( ref this ) ) ;
88+ => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < IInternalCustomDestinationList * , int > ) lpVtbl [ 11 ] )
89+ ( ( IInternalCustomDestinationList * ) Unsafe . AsPointer ( ref this ) ) ;
9190
9291 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
9392 public HRESULT ClearRemovedDestinations ( )
94- => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < ICustomDestinationList2 * , int > ) lpVtbl [ 12 ] )
95- ( ( ICustomDestinationList2 * ) Unsafe . AsPointer ( ref this ) ) ;
93+ => ( HRESULT ) ( ( delegate * unmanaged[ MemberFunction ] < IInternalCustomDestinationList * , int > ) lpVtbl [ 12 ] )
94+ ( ( IInternalCustomDestinationList * ) Unsafe . AsPointer ( ref this ) ) ;
9695 }
9796
9897 [ StructLayout ( LayoutKind . Sequential ) ]
0 commit comments