mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
669 B
28 lines
669 B
//Copyright (c) 1998 - 1999 Microsoft Corporation
|
|
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
|
|
void main(void)
|
|
{
|
|
// DWORD dwError;
|
|
OSVERSIONINFOEX osVersionInfo;
|
|
DWORDLONG dwlConditionMask = 0;
|
|
|
|
ZeroMemory(&osVersionInfo, sizeof(OSVERSIONINFOEX));
|
|
osVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
|
|
osVersionInfo.wSuiteMask = VER_SUITE_TERMINAL;
|
|
|
|
VER_SET_CONDITION( dwlConditionMask, VER_SUITENAME, VER_AND );
|
|
|
|
BOOL bTsPresent = VerifyVersionInfo(
|
|
&osVersionInfo,
|
|
VER_SUITENAME,
|
|
dwlConditionMask
|
|
);
|
|
|
|
printf("VerifyVersionInfo says TerminalServices is %s", bTsPresent ? "ON" : "OFF");
|
|
|
|
}
|
|
|
|
// eof
|