Delphi-PRAXiS
Seite 1 von 3  1 23      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   limiting number of instances in Windows terminal server (https://www.delphipraxis.net/200895-limiting-number-instances-windows-terminal-server.html)

imadam 4. Jun 2019 20:46

limiting number of instances in Windows terminal server
 
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.

Schokohase 4. Jun 2019 22:29

AW: limiting number of instances in Windows terminal server
 
Do you use a mutex?

If yes, a global or a session mutex?

API 4. Jun 2019 23:28

AW: limiting number of instances in Windows terminal server
 
Zitat:

Zitat von imadam (Beitrag 1433893)
Hello,
I can read a little of German, but to write, not possible.

https://en.delphipraxis.net/

imadam 5. Jun 2019 06:02

AW: limiting number of instances in Windows terminal server
 
Zitat:

Zitat von Schokohase (Beitrag 1433907)
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 :-).

imadam 5. Jun 2019 06:04

AW: limiting number of instances in Windows terminal server
 
Zitat:

Zitat von API (Beitrag 1433910)
Zitat:

Zitat von imadam (Beitrag 1433893)
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.

TBx 5. Jun 2019 06:11

AW: limiting number of instances in Windows terminal server
 
Zitat:

Zitat von imadam (Beitrag 1433916)
[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.

imadam 5. Jun 2019 06:14

AW: limiting number of instances in Windows terminal server
 
Zitat:

Zitat von TBx (Beitrag 1433918)
Zitat:

Zitat von imadam (Beitrag 1433916)
[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.

imadam 5. Jun 2019 06:25

AW: limiting number of instances in Windows terminal server
 
Zitat:

Zitat von imadam (Beitrag 1433919)
Zitat:

Zitat von TBx (Beitrag 1433918)
Zitat:

Zitat von imadam (Beitrag 1433916)
[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.

Schokohase 5. Jun 2019 07:29

AW: limiting number of instances in Windows terminal server
 
Zitat:

Zitat von imadam (Beitrag 1433914)
Zitat:

Zitat von Schokohase (Beitrag 1433907)
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
Zitat:

Zitat von imadam (Beitrag 1433893)
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

imadam 5. Jun 2019 07:35

AW: limiting number of instances in Windows terminal server
 
Zitat:

Zitat von Schokohase (Beitrag 1433923)
Zitat:

Zitat von imadam (Beitrag 1433914)
Zitat:

Zitat von Schokohase (Beitrag 1433907)
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
Zitat:

Zitat von imadam (Beitrag 1433893)
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 ...


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:26 Uhr.
Seite 1 von 3  1 23      

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