GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — WinUI3_SwapChainPanel_DWriteCore/GlobalStructures.cs at master · castorix/WinUI3_SwapChainPanel_DWriteCore Expand file tree/ Copy pathGlobalStructures.csMore file actions 258 lines (235 loc) · 6.65 KB / Copy pathGlobalStructures.csFile metadata and controls258 lines (235 loc) · 6.65 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.InteropServices; namespace GlobalStructures { public enum HRESULT : int { S_OK = 0, S_FALSE = 1, E_NOTIMPL = unchecked((int)0x80004001), E_NOINTERFACE = unchecked((int)0x80004002), E_POINTER = unchecked((int)0x80004003), E_FAIL = unchecked((int)0x80004005), E_UNEXPECTED = unchecked((int)0x8000FFFF), E_OUTOFMEMORY = unchecked((int)0x8007000E), E_INVALIDARG = unchecked((int)0x80070057), } [StructLayout(LayoutKind.Sequential)] public struct RECT { public int left; public int top; public int right; public int bottom; public RECT(int Left, int Top, int Right, int Bottom) { left = Left; top = Top; right = Right; bottom = Bottom; } } [StructLayout(LayoutKind.Sequential)] public struct POINT { public int x; public int y; public POINT(int x, int y) { this.x = x; this.y = y; } } [StructLayout(LayoutKind.Sequential)] public struct SIZE { public int cx; public int cy; public SIZE(int cx, int cy) { this.cx = cx; this.cy = cy; } } [StructLayout(LayoutKind.Explicit)] public struct LARGE_INTEGER { [FieldOffset(0)] public int LowPart; [FieldOffset(4)] public int HighPart; [FieldOffset(0)] public long QuadPart; } public enum VARENUM { VT_EMPTY = 0, VT_NULL = 1, VT_I2 = 2, VT_I4 = 3, VT_R4 = 4, VT_R8 = 5, VT_CY = 6, VT_DATE = 7, VT_BSTR = 8, VT_DISPATCH = 9, VT_ERROR = 10, VT_BOOL = 11, VT_VARIANT = 12, VT_UNKNOWN = 13, VT_DECIMAL = 14, VT_I1 = 16, VT_UI1 = 17, VT_UI2 = 18, VT_UI4 = 19, VT_I8 = 20, VT_UI8 = 21, VT_INT = 22, VT_UINT = 23, VT_VOID = 24, VT_HRESULT = 25, VT_PTR = 26, VT_SAFEARRAY = 27, VT_CARRAY = 28, VT_USERDEFINED = 29, VT_LPSTR = 30, VT_LPWSTR = 31, VT_RECORD = 36, VT_INT_PTR = 37, VT_UINT_PTR = 38, VT_FILETIME = 64, VT_BLOB = 65, VT_STREAM = 66, VT_STORAGE = 67, VT_STREAMED_OBJECT = 68, VT_STORED_OBJECT = 69, VT_BLOB_OBJECT = 70, VT_CF = 71, VT_CLSID = 72, VT_VERSIONED_STREAM = 73, VT_BSTR_BLOB = 0xfff, VT_VECTOR = 0x1000, VT_ARRAY = 0x2000, VT_BYREF = 0x4000, VT_RESERVED = 0x8000, VT_ILLEGAL = 0xffff, VT_ILLEGALMASKED = 0xfff, VT_TYPEMASK = 0xfff }; [StructLayout(LayoutKind.Sequential)] public struct PROPARRAY { public uint cElems; public IntPtr pElems; } [StructLayout(LayoutKind.Explicit, Pack = 1)] public struct PROPVARIANT { [FieldOffset(0)] public ushort varType; [FieldOffset(2)] public ushort wReserved1; [FieldOffset(4)] public ushort wReserved2; [FieldOffset(6)] public ushort wReserved3; [FieldOffset(8)] public byte bVal; [FieldOffset(8)] public sbyte cVal; [FieldOffset(8)] public ushort uiVal; [FieldOffset(8)] public short iVal; [FieldOffset(8)] public UInt32 uintVal; [FieldOffset(8)] public Int32 intVal; [FieldOffset(8)] public UInt64 ulVal; [FieldOffset(8)] public Int64 lVal; [FieldOffset(8)] public float fltVal; [FieldOffset(8)] public double dblVal; [FieldOffset(8)] public short boolVal; [FieldOffset(8)] public IntPtr pclsidVal; // GUID ID pointer [FieldOffset(8)] public IntPtr pszVal; // Ansi string pointer [FieldOffset(8)] public IntPtr pwszVal; // Unicode string pointer [FieldOffset(8)] public IntPtr punkVal; // punkVal (interface pointer) [FieldOffset(8)] public PROPARRAY ca; [FieldOffset(8)] public System.Runtime.InteropServices.ComTypes.FILETIME filetime; } [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct PROPERTYKEY { private readonly Guid _fmtid; private readonly uint _pid; public PROPERTYKEY(Guid fmtid, uint pid) { _fmtid = fmtid; _pid = pid; } public static readonly PROPERTYKEY PKEY_ItemNameDisplay = new PROPERTYKEY(new Guid("B725F130-47EF-101A-A5F1-02608C9EEBAC"), 10); public static readonly PROPERTYKEY PKEY_FileVersion = new PROPERTYKEY(new Guid("0CEF7D53-FA64-11D1-A203-0000F81FEDEE"), 4); } internal class GlobalTools { #nullable enable public static void SafeRelease<T>(ref T? comObject) where T : class { T? t = comObject; comObject = default; if (t != null) { if (Marshal.IsComObject(t)) Marshal.ReleaseComObject(t); } } #nullable disable public const long DELETE = (0x00010000L); public const long READ_CONTROL = (0x00020000L); public const long WRITE_DAC = (0x00040000L); public const long WRITE_OWNER = (0x00080000L); public const long SYNCHRONIZE = (0x00100000L); public const long GENERIC_READ = (0x80000000L); public const long GENERIC_WRITE = (0x40000000L); public const long GENERIC_EXECUTE = (0x20000000L); public const long GENERIC_ALL = (0x10000000L); public enum STGC :int { STGC_DEFAULT = 0, STGC_OVERWRITE = 1, STGC_ONLYIFCURRENT = 2, STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4, STGC_CONSOLIDATE = 8 } [DllImport("User32.dll", SetLastError = true, CharSet = CharSet.Unicode)] public static extern uint GetDpiForWindow(IntPtr hwnd); public static int RGB(byte r, byte g, byte b) { return (r) | ((g) << 8) | ((b) << 16); } public static int HIWORD(IntPtr wParam) { return (int)((wParam.ToInt64() >> 16) & 0xffff); } public static int LOWORD(IntPtr wParam) { return (int)(wParam.ToInt64() & 0xffff); } public static bool SUCCEEDED(HRESULT hr) => hr >= 0; } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |