I would like to determine if my program is running on a version of Windows Server. Apparently, System.Environment does not contain information about the fact th
System.Environment
IsWindowsServer is an inline function in VersionHelpers.h.
IsWindowsServer
VersionHelpers.h
You can find and read that header file on your computer. It uses the API function VerifyVersionInfoW.
VerifyVersionInfoW
There is no function IswindowsServer in kernel32.dll.
IswindowsServer
kernel32.dll