AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) limiting number of instances in Windows terminal server

limiting number of instances in Windows terminal server

Ein Thema von imadam · begonnen am 4. Jun 2019 · letzter Beitrag vom 5. Jun 2019
Antwort Antwort
Seite 1 von 3  1 23   
imadam

Registriert seit: 4. Jun 2019
12 Beiträge
 
#1

limiting number of instances in Windows terminal server

  Alt 4. Jun 2019, 21:46
Hello,
I can read a little of German, but to write, not possible. So here is my question in English:
I have Delphi app which need to execute in Windows Terminal Server (nowdays RDS). We would like to be able to control how many instances user can run in their session. So for example:
- user 1 can run two instances of app 1
- user 2 can run 1 instance of app 1

We are able to fix this on Windows to have only one instance of application running but on TS is a bit problem for us. Anybody had similar problem?

Thank you.
  Mit Zitat antworten Zitat
Schokohase
(Gast)

n/a Beiträge
 
#2

AW: limiting number of instances in Windows terminal server

  Alt 4. Jun 2019, 23:29
Do you use a mutex?

If yes, a global or a session mutex?
  Mit Zitat antworten Zitat
API

Registriert seit: 18. Apr 2004
636 Beiträge
 
#3

AW: limiting number of instances in Windows terminal server

  Alt 5. Jun 2019, 00:28
Hello,
I can read a little of German, but to write, not possible.
https://en.delphipraxis.net/
  Mit Zitat antworten Zitat
Alt 5. Jun 2019, 06:34     Erstellt von jodbono
Dieser Beitrag wurde von TBx gelöscht. - Grund: Verdacht auf SPAM und den damit verbundenen verschwenderischen Umgang von wertvollen Bits und Bytes
imadam

Registriert seit: 4. Jun 2019
12 Beiträge
 
#4

AW: limiting number of instances in Windows terminal server

  Alt 5. Jun 2019, 07:02
Do you use a mutex?

If yes, a global or a session mutex?
This is new app. Starting from scratch. So Delphi best practice should be applied here .
  Mit Zitat antworten Zitat
imadam

Registriert seit: 4. Jun 2019
12 Beiträge
 
#5

AW: limiting number of instances in Windows terminal server

  Alt 5. Jun 2019, 07:04
Hello,
I can read a little of German, but to write, not possible.
https://en.delphipraxis.net/
Thank you. Looks like same username doesn't work on EN site.
  Mit Zitat antworten Zitat
TBx
(Administrator)

Registriert seit: 13. Jul 2005
Ort: Stadthagen
1.874 Beiträge
 
Delphi 12 Athens
 
#6

AW: limiting number of instances in Windows terminal server

  Alt 5. Jun 2019, 07:11
[Looks like same username doesn't work on EN site.
en.delphipraxis.net has not the same user database. You have to clone your account via this Link.
Thomas Breitkreuz
Gruß Thomas
- Admin DelphiPRAXIS
- Admin Delphi-Treff
- Embarcadero MVP
  Mit Zitat antworten Zitat
imadam

Registriert seit: 4. Jun 2019
12 Beiträge
 
#7

AW: limiting number of instances in Windows terminal server

  Alt 5. Jun 2019, 07:14
[Looks like same username doesn't work on EN site.
en.delphipraxis.net has not the same user database. You have to clone your account via this Link.
Tnx Tomas. Will try to clone.
  Mit Zitat antworten Zitat
imadam

Registriert seit: 4. Jun 2019
12 Beiträge
 
#8

AW: limiting number of instances in Windows terminal server

  Alt 5. Jun 2019, 07:25
[Looks like same username doesn't work on EN site.
en.delphipraxis.net has not the same user database. You have to clone your account via this Link.
Tnx Tomas. Will try to clone.
Cloned but doesn't work.
  Mit Zitat antworten Zitat
Schokohase
(Gast)

n/a Beiträge
 
#9

AW: limiting number of instances in Windows terminal server

  Alt 5. Jun 2019, 08:29
Do you use a mutex?

If yes, a global or a session mutex?
This is new app. Starting from scratch. So Delphi best practice should be applied here .
You already have a working solution for
We are able to fix this on Windows to have only one instance of application running
so please show us it and we can tell yo how to change it for running on TS
  Mit Zitat antworten Zitat
imadam

Registriert seit: 4. Jun 2019
12 Beiträge
 
#10

AW: limiting number of instances in Windows terminal server

  Alt 5. Jun 2019, 08:35
Do you use a mutex?

If yes, a global or a session mutex?
This is new app. Starting from scratch. So Delphi best practice should be applied here .
You already have a working solution for
We are able to fix this on Windows to have only one instance of application running
so please show us it and we can tell yo how to change it for running on TS
I read my post again. It is bit confusing . So we started with prototype. Playing around. We were able limit this to one instance of the app on Windows Desktop. However, we would like to be able to set number of instances (like 3 for user 1, 1 for user 2) in Terminal server. Also, if is there some best practice for Delphi developing this kind of apps, it would be great if somebody can share it. Let me know what to share ...
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

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 22:07 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