Detecting Terminal Services Remote Administration Mode




Download 197,5 Kb.
bet46/49
Sana29.03.2021
Hajmi197,5 Kb.
#13691
1   ...   41   42   43   44   45   46   47   48   49

Detecting Terminal Services Remote Administration Mode


In the Windows 2000 operating system, Terminal Services can be enabled in two modes: Application Server and Remote Administration. Remote Administration mode is a two-client, limited form of Terminal Services that is specifically intended for remote administrative access to a server. Terminal Services enhanced application compatibility code is disabled in this mode in order to simplify installation of server class applications. Note that all of the previous code example will return TRUE because they only check to see that Terminal Services is enabled. The following code distinguishes the Remote Administration mode of Terminal Services. Note that this is the same Windows 2000 example, except that the wSuiteMask value is set to VER_SUITE_SINGLEUSERTS (defined in WINNT.H).
BOOL IsTerminalServicesRemoteAdminEnabled( VOID )

{

OSVERSIONINFOEX osVersionInfo;



DWORDLONG dwlConditionMask = 0;
ZeroMemory(&osVersionInfo, sizeof(OSVERSIONINFOEX));

osVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);



osVersionInfo.wSuiteMask = VER_SUITE_SINGLEUSERTS;
VER_SET_CONDITION( dwlConditionMask, VER_SUITENAME, VER_AND );
return VerifyVersionInfo(

&osVersionInfo,

VER_SUITENAME,

dwlConditionMask

);

}




Download 197,5 Kb.
1   ...   41   42   43   44   45   46   47   48   49




Download 197,5 Kb.

Bosh sahifa
Aloqalar

    Bosh sahifa



Detecting Terminal Services Remote Administration Mode

Download 197,5 Kb.