We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4575b08 commit ac42e02Copy full SHA for ac42e02
src/Files.App.CsWin32/Extras.cs
@@ -44,6 +44,20 @@ public static unsafe nint SetWindowLongPtr(HWND hWnd, WINDOW_LONG_PTR_INDEX nInd
44
public const int PixelFormat32bppARGB = 2498570;
45
}
46
47
+ namespace Foundation
48
+ {
49
+ public partial struct PCWSTR
50
51
+ public static unsafe PCWSTR FromString(string value)
52
53
+ fixed (char* p = value)
54
55
+ return new PCWSTR(p);
56
+ }
57
58
59
60
+
61
namespace Extras
62
{
63
[GeneratedComInterface, Guid("EACDD04C-117E-4E17-88F4-D1B12B0E3D89"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
0 commit comments