// versionhelpers.h
VERSIONHELPERAPI IsActiveSessionCountLimited();
View the official Win32 API referenceNo description available.
Indicates if the current OS allows only a limited number of concurrent interactive sessions.
True if the current OS limits the number of concurrent interactive sessions; otherwise, false.
Most editions of Windows have a limit on the number of concurrent interactive sessions. Some editions of Windows—like Windows 10 Enterprise multi-session, Windows 11 Enterprise multi-session, and some editions of Windows Server—support an unlimited number of concurrent interactive session. This function returns true if there is a limit in place.
On Windows Server, this functions returns false only when the Remote Desktop Session Host role is installed.
Windows Enterprise multi-session FAQ