Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Uniq blocking with multiple users logged into same machine
Uniq blocking with multiple users logged into same machine [message #35668] |
Sun, 11 March 2012 19:58  |
jjacksonRIAB
Messages: 227 Registered: June 2011
|
Experienced Member |
|
|
I am using Uniq in Windows for an application where I want only one copy running per user, but the problem is if another user logs into that same machine and tries to run the same application, Uniq blocks execution until the first user logs out or exits their instance.
How do I use Uniq so it runs single instance per user instead of single instance per machine?
Does something like this work?:
pipePath = Format("\\\\.\\PIPE\\%s\\%s", GetExeTitle(), GetUserName());
Or maybe I can append a security token for the current session?
**EDIT** Yes, changing this line of code allows me to run the application as both myself and under guest account, so I think this works.
[Updated on: Sun, 11 March 2012 20:39] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sun May 11 11:45:01 CEST 2025
Total time taken to generate the page: 0.03025 seconds
|