mirror of
https://github.com/PowerShell/PSReadLine
synced 2026-06-08 12:12:13 +00:00
24 lines
710 B
C#
24 lines
710 B
C#
/********************************************************************++
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
--********************************************************************/
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Microsoft.PowerShell.Internal
|
|
{
|
|
internal class Accessibility
|
|
{
|
|
internal static bool IsScreenReaderActive()
|
|
{
|
|
bool returnValue = false;
|
|
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
{
|
|
PlatformWindows.SystemParametersInfo(PlatformWindows.SPI_GETSCREENREADER, 0, ref returnValue, 0);
|
|
}
|
|
|
|
return returnValue;
|
|
}
|
|
}
|
|
}
|