Skip to content

Commit 65fce1a

Browse files
committed
Init
1 parent 80c9b43 commit 65fce1a

30 files changed

+210
-152
lines changed

src/Files.App.CsWin32/ComHeapPtr`1.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ public ComHeapPtr(T* ptr)
2323
_ptr = ptr;
2424
}
2525

26+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
27+
public void Attach(T* other)
28+
{
29+
if (_ptr is not null)
30+
((IUnknown*)_ptr)->Release();
31+
32+
_ptr = other;
33+
}
34+
2635
[MethodImpl(MethodImplOptions.AggressiveInlining)]
2736
public readonly T* Get()
2837
{

src/Files.App.CsWin32/ManualGuid.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ public static Guid* IID_IStorageProviderStatusUISourceFactory
6262

6363
[GuidRVAGen.Guid("000214F4-0000-0000-C000-000000000046")]
6464
public static partial Guid* IID_IContextMenu2 { get; }
65+
66+
[GuidRVAGen.Guid("0000010E-0000-0000-C000-000000000046")]
67+
public static partial Guid* IID_IDataObject { get; }
6568
}
6669

6770
public static unsafe partial class CLSID
@@ -89,6 +92,9 @@ public static unsafe partial class CLSID
8992

9093
[GuidRVAGen.Guid("D969A300-E7FF-11d0-A93B-00A0C90F2719")]
9194
public static partial Guid* CLSID_NewMenu { get; }
95+
96+
[GuidRVAGen.Guid("09799AFB-AD67-11D1-ABCD-00C04FC30936")]
97+
public static partial Guid* CLSID_OpenWithMenu { get; }
9298
}
9399

94100
public static unsafe partial class BHID

src/Files.App.CsWin32/NativeMethods.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,5 @@ GetMenuItemCount
236236
GetMenuItemInfo
237237
IsWow64Process2
238238
GetCurrentProcess
239+
ILFindLastID
240+
SHCreateDataObject

src/Files.App.Storage/Storables/WindowsStorage/ContextMenuItem.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Files.App.Storage/Storables/WindowsStorage/IFolderSettings.cs renamed to src/Files.App.Storage/Windows/IFolderSettings.cs

File renamed without changes.

src/Files.App.Storage/Storables/WindowsStorage/IWindowsFile.cs renamed to src/Files.App.Storage/Windows/IWindowsFile.cs

File renamed without changes.

src/Files.App.Storage/Storables/WindowsStorage/IWindowsFolder.cs renamed to src/Files.App.Storage/Windows/IWindowsFolder.cs

File renamed without changes.

src/Files.App.Storage/Storables/WindowsStorage/IWindowsStorable.cs renamed to src/Files.App.Storage/Windows/IWindowsStorable.cs

File renamed without changes.

src/Files.App.Storage/Storables/WindowsStorage/JumpListDestinationType.cs renamed to src/Files.App.Storage/Windows/JumpListDestinationType.cs

File renamed without changes.

src/Files.App.Storage/Storables/WindowsStorage/JumpListItem.cs renamed to src/Files.App.Storage/Windows/JumpListItem.cs

File renamed without changes.

0 commit comments

Comments
 (0)