Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 220
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

 
Read Message
Read Message
Read Message
Previous Topic: How to change the ZOrder of childcontrols at runtime?
Next Topic: dBase Memo field
Goto Forum:
  


Current Time: Fri Apr 26 16:56:38 CEST 2024

Total time taken to generate the page: 0.02868 seconds