'Import-Module PSReadLine'. (setting)
'Import-Module PSReadLine' How to fix this issue in vs code ?? -- Mohit. 'Import-Module PSReadLine'. Add-Type -TypeDefinition ' using System; using System.ComponentModel; using System.Runtime.InteropServices; public static class ScreenReaderFixUtil { public static bool IsScreenReaderActive() { var ptr = IntPtr.Zero; try { ptr = Marshal.AllocHGlobal(sizeof(int)); int hr = Interop.SystemParametersInfo( Interop.SPI_GETSCREENREADER, sizeof(int), ptr, 0); if (hr == 0) { throw new Win32Exception(Marshal.GetLastWin32Error()); } return Marshal.ReadInt32(ptr) != 0; } finally { if (ptr != IntPtr.Zero) { Marshal.FreeHGlobal(ptr); } } } public static void SetScreenReaderActiveStatus(bool isActive) ...
Comments
Post a Comment