Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

getting name of synchronization object windows from handle

0 views
Skip to first unread message

Tom K

unread,
Jul 30, 2009, 12:04:01 PM7/30/09
to
Hi,

I was wondering if there is a method for getting the name of a
synchronization object windows from a handle to that object?

For example:

handle = CreateMutex(NULL,FALSE,_T("SomeNameStr"));

At some point later on I would like to be able to retrieve the "SomeNameStr"
name from the handle. I realize that I can save the string upon creation,
but in some cases I do not have control of the creation of the named object,
I just receive the handle.

Thank you,

Tom

Tom K

unread,
Jul 30, 2009, 12:13:01 PM7/30/09
to
Sorry, the first sentence should read:

I was wondering if there is a method for getting the name of a

synchronization object from a handle to that object?

( That's what happens when you cut and paste your google search string into
your message :) )

Paul G. Tobey [eMVP]

unread,
Jul 30, 2009, 12:50:13 PM7/30/09
to
I don't see any way. The code for CreateMutex is in the PRIVATE code
branch. You can look at it and see if you see any way to access the name
based on a handle, but I don't see one.

Paul T.

"Tom K" <To...@discussions.microsoft.com> wrote in message
news:C7CDEB73-F82B-4C38...@microsoft.com...

0 new messages