<PackageReference Include="Microsoft.Identity.Client" Version="4.82.1" />

Microsoft.Identity.Client.Platforms.Features.DesktopOs.User32

static class User32
namespace Microsoft.Identity.Client.Platforms.Features.DesktopOs { internal static class User32 { public const int UOI_FLAGS = 1; public const int WSF_VISIBLE = 1; public static extern IntPtr GetProcessWindowStation(); public unsafe static extern bool GetUserObjectInformation(IntPtr hObj, int nIndex, void* pvBuffer, uint nLength, ref uint lpnLengthNeeded); } }