AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) GetSystemMetrics(SM_REMOTESESSION) immer false
Thema durchsuchen
Ansicht
Themen-Optionen

GetSystemMetrics(SM_REMOTESESSION) immer false

Ein Thema von spieltkeinerolle · begonnen am 20. Mär 2015 · letzter Beitrag vom 20. Mär 2015
Antwort Antwort
spieltkeinerolle

Registriert seit: 20. Mär 2015
1 Beiträge
 
#1

GetSystemMetrics(SM_REMOTESESSION) immer false

  Alt 20. Mär 2015, 07:56
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?
  Mit Zitat antworten Zitat
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.171 Beiträge
 
Delphi 10.4 Sydney
 
#2

AW: GetSystemMetrics(SM_REMOTESESSION) immer false

  Alt 20. Mär 2015, 08:57
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?
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
hathor
(Gast)

n/a Beiträge
 
#3

AW: GetSystemMetrics(SM_REMOTESESSION) immer false

  Alt 20. Mär 2015, 09:57
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
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:32 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