Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting If Terminal Services is Installed on Win 2000
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00778293
Message ID:
00778317
Vues:
19
This message has been marked as the solution to the initial question of the thread.
>I got the following code from ...
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/detecting_if_terminal_services_is_installed.asp
>
>BOOL AreWeRunningTerminalServices(void)
>{
>    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 );
>
>    return VerifyVersionInfo(
>        &osVersionInfo,
>        VER_SUITENAME,
>        dwlConditionMask
>        );
>}
>
>My question is if there is a VFP equivalent.
>
>Thanks for any input.

Doug,

If you're using VFP7 or later
? BITAND(OS(10), 16) > 0
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform