From - Fri Oct 03 14:50:56 1997 Path: news.mitre.org!blanket.mitre.org!news.tufts.edu!cam-news-feed5.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news-feed1.tiac.net!news.ultranet.com!not-for-mail From: "dave porter" Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode Subject: Re: ZwCreateFile problem Date: 3 Oct 1997 17:01:05 GMT Organization: Dave's New&Used Bits Lines: 38 Message-ID: <01bcd01e$946f7520$5b227392@glastonbury> References: <343183e8.63879473@news.connectnet.com> NNTP-Posting-Host: 146.115.34.91 X-Newsreader: Microsoft Internet News 4.70.1161 You need to specify the correct path for the file, in terms that NT can understand. In NT, files have real names like \Device\HardDisk0\Partition1\winnt\foo.bar If you're wedded to the DOS worldview, you can use the ?? symlink which maps DOS drive letters into the NT namespace. The above might then look like: \??\C:\winnt\foo.bar In former versions, "??" was spelled "DosDevices". There still is a "DosDevices", but that's really there for back-compatibility. For Win32 file access, the Win32 subsystem sticks a \??\ on the front of the path for you. dave -- for email: remove the 'z' from my address. sorry. vasquezj@getntds.com wrote in article <343183e8.63879473@news.connectnet.com>... > I followed the sample program Zwcreate.c in the DDK and was able to > open a file located in "\\SystemRoot\\System32\\Drivers\\" > However, if a copy the file into the root dir or any other directory, > I get an error form Zwcreate (STATUS_OBJECT_NOT_FOUND). > > Can I open another file in a different directory besides > "\\SystemRoot\\System32\\Drivers"? If so, how? > > John Vasquez > > >