Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   GetSystemMetrics(SM_REMOTESESSION) immer false (https://www.delphipraxis.net/184367-getsystemmetrics-sm_remotesession-immer-false.html)

spieltkeinerolle 20. Mär 2015 07:56

GetSystemMetrics(SM_REMOTESESSION) immer false
 
Hallo Delphipraix,

ich habe hier eine Anwendung, die per GetSystemMetrics( SM_REMOTESESSION ) prüft ob sie auf einem Terminal läuft.
jetzt würde ich der 32bit Anwendung gerne vorgaukeln, dass sie nicht auf einem Terminal läuft.

Wie mache ich das am Besten? Ich habe es über hooks probiert, aber nicht viel erreicht.

Hat einer eine Idee, oder hat so etwas vielleicht schon mal gemacht?

Bernhard Geyer 20. Mär 2015 08:57

AW: GetSystemMetrics(SM_REMOTESESSION) immer false
 
Und was willst du damit erreichen? Eine Prüfung auf RemoteSeesion erfolgt i.d.R. nur wenn man ein Nodelock-Lizenzierung hat und eine solche nicht über Betrieb über TerminalServices umgehen lassen will.
Frage: Willst du damit die Lizenzierung eines Kostenpflichtigen Tools umgehen/Aushebeln?

hathor 20. Mär 2015 09:57

AW: GetSystemMetrics(SM_REMOTESESSION) immer false
 
Zitat:
You should not use GetSystemMetrics(SM_REMOTESESSION) to determine if your application is running in a remote session in Windows 8 and later or Windows Server 2012 and later if the remote session may also be using the RemoteFX vGPU improvements to the Microsoft Remote Display Protocol (RDP). In this case, GetSystemMetrics(SM_REMOTESESSION) will identify the remote session as a local session.

Your application can check the following registry key to determine whether the session is a remote session that uses RemoteFX vGPU. If a local session exists, this registry key provides the ID of the local session.

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Terminal Server\GlassSessionId
https://msdn.microsoft.com/de-de/lib...=vs.85%29.aspx


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:16 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz