public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Takuma's Duplicate Display Check
@ 2004-03-02  4:32 Harold L Hunt II
  2004-03-02  5:13 ` Harold L Hunt II
  0 siblings, 1 reply; 2+ messages in thread
From: Harold L Hunt II @ 2004-03-02  4:32 UTC (permalink / raw)
  To: cygx

Takuma,

Your duplicate display check in InitOutput.c seems correct to me.

The only question I have is if the mutex allocated by CreateMutex is 
visible by XWin.exe running under a different session on Terminal Services.

Oops, I just looked it up and answered my own question:

========================================================================
Terminal Services:  The name can have a "Global\" or "Local\" prefix to 
explicitly create the object in the global or session name space. The 
remainder of the name can contain any character except the backslash 
character (\). For more information, see Kernel Object Namespaces.

Windows XP:  Fast user switching is implemented using Terminal Services 
sessions. The first user to log on uses session 0, the next user to log 
on uses session 1, and so on. Kernel object names must follow the 
guidelines outlined for Terminal Services so that applications can 
support multiple users.

Windows 2000:  If Terminal Services is not running, the "Global\" and 
"Local\" prefixes are ignored. The remainder of the name can contain any 
character except the backslash character.

Windows NT 4.0 and earlier:  The name can contain any character except 
the backslash character.

Windows 95/98/Me:  The name can contain any character except the 
backslash character. The empty string ("") is a valid object name.
========================================================================

We can easily add "Global\" to the name, but I think we have to have a 
way to detect that the NT version is greater than 4.0, since it sounds 
like CreateMutex may fail on Windows 95/98/Me/NT 4.0 if you pass it a 
"\" in the name.

I am going to add the "Global\" to CVS... and possibly a way to make 
sure that "Global\" is only prepended for NT > 4.0.

Harold


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Takuma's Duplicate Display Check
  2004-03-02  4:32 Takuma's Duplicate Display Check Harold L Hunt II
@ 2004-03-02  5:13 ` Harold L Hunt II
  0 siblings, 0 replies; 2+ messages in thread
From: Harold L Hunt II @ 2004-03-02  5:13 UTC (permalink / raw)
  To: cygwin-xfree

Okay, I fixed it.  It should work with Terminal Services now without 
causing problems with non-NT > 4.0 versions of Windows.  The change has 
been committed to the CYGWIN tag in CVS.

Harold


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-02  5:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-02  4:32 Takuma's Duplicate Display Check Harold L Hunt II
2004-03-02  5:13 ` Harold L Hunt II

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).