Thanks very much. I was looking for this function only.
-Srin.
-----Original Message-----
From: Peter Viscarola [mailto:xxxxx@osr.com]
Sent: Wednesday, September 25, 2002 3:33 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to get device name from the symbolic link name.
“Walter Oney” wrote in message news:xxxxx@ntdev…
>
> > xxxxx@NAI.com wrote:
> > Is there a way to get the devicename if i have the symbolic link
> > name?
>
> You need to open the symbolic link object and query it. The functions
> for doing this are not officially documented, but Gary Nebbett’s
>
Walter’s answer is right for doing this from USER mode, but from kernel mode
the function to use is ObQueryNameString(…) which is fully documented in
the IFS kit:
"The ObQueryNameString routine supplies the name, if any, of a given object
to which the caller has a pointer. "
Is this what you’re trying to do Srin? Can’t tell from your question…
Peter
OSR
—
You are currently subscribed to ntdev as: xxxxx@nai.com
To unsubscribe send a blank email to %%email.unsub%%