This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| internal static class SafeNativeMethods | |
| { | |
| [DllImport("dwmapi", SetLastError = true)] | |
| private static extern int DwmIsCompositionEnabled([MarshalAs(UnmanagedType.Bool)] out bool isEnabled); | |
| public static bool SafeDwmIsCompositionEnabled() | |
| { | |
| bool result = false; | |
| if (Environment.OSVersion.Version.Major >= 6) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace SimpleGlobbing; | |
| using System; | |
| using System.Buffers; | |
| using System.Diagnostics.CodeAnalysis; | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| static class Globbing | |
| { |