createfile

hi where can i find all the meanings of " \\.\somename" which is used increatefile calls to connect to driver from application. rg…kiran


Yahoo! Plus - For a better Internet experience

First, since this is a string in a C program, the quotes are doubled. So the actual name string is \.\somename.

This is a UNC pathname. The \ says a hostname follows. A hostname of dot is the local host, which is what you have to use when you are opening a device.

The remaining name string, which can have more \ characters in it, is determined by the driver in one way or another. It is a symbolic link name that is linked to another internal name of a device the driver has created. On old drivers you used to do a CreateSymbolicLink to make this name when you opened the driver and created the device. On PnP drivers there are other ways to create this link, including letting the OS invent a name for you.

Loren

In NT OSes, this is a name of the symbolic link in the ?? directory, created by IoCreateSymbolicLink in the driver.

Max

----- Original Message -----
From: kiran k
To: NT Developers Interest List
Sent: Monday, May 12, 2003 4:18 PM
Subject: [ntdev] createfile

hi

where can i find all the meanings of " \\.\somename" which is used in
createfile calls to connect to driver from application.

rg…kiran


Yahoo! Plus - For a better Internet experience
— You are currently subscribed to ntdev as: xxxxx@storagecraft.com To unsubscribe send a blank email to xxxxx@lists.osr.com