Re: STATUS_OBJECT_NAME_NOT_FOUND
From: Maxim S. Shatskih (maxim_at_storagecraft.com)
Date: 01/19/05
- Previous message: Slava M. Usov: "Re: Determining password expiration"
- In reply to: John Thompson: "Re: STATUS_OBJECT_NAME_NOT_FOUND"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 Jan 2005 20:12:27 +0300
Drivers using parameters from config files is a just a bad design. It is
much better to switch the whole product to use Registry. Config files in
Windows are obsolete since Windows 95.
For Boot class drivers, this is not possible at all.
For other drivers, you can try one of the 2 approaches:
- put the config file to system32 directory and use
\SystemRoot\system32\file pathname in the driver
- use the drive-letter-based pathname, but prepend it with \?? prefix.
Like \??\C:\Dir\File.
Surely, OBJ_CASE_INSENSITIVE.
-- Maxim Shatskih, Windows DDK MVP StorageCraft Corporation maxim@storagecraft.com http://www.storagecraft.com "John Thompson" <johnthompson1@hotmail.com> wrote in message news:41ee7f73$1@news.xetron.com... > OK, I'm sorry again Maxim. I think I get your statement now. Put any > settings I have in the registry instead of in a configuration file. > However, I'm not the only guy that looks at this file, so my driver has to > use this file to open it and search through it. Any other ideas? > > Thanks again, > -- John > > > > "John Thompson" <johnthompson1@hotmail.com> wrote in message > news:41ee7e8f$1@news.xetron.com... > > I'm sorry Maxim, I'm not sure I understand. How will the Windows Registry > > help me to open a file? > > > > Thanks, > > -- John > > > > > > "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message > > news:cslgc9$1vh5$2@gavrilo.mtu.ru... > >>> When my driver starts, I need to read a configuration file. This works > >>> fine > >>> if I just install my driver on the system and reboot the system. The > >>> driver > >>> opens the configuration file fine, and everything works. > >> > >> Use SYSTEM registry instead, it's a recommended way and will solve all > >> these > >> problems. > >> > >> -- > >> Maxim Shatskih, Windows DDK MVP > >> StorageCraft Corporation > >> maxim@storagecraft.com > >> http://www.storagecraft.com > >> > >> > > > > > > >
- Previous message: Slava M. Usov: "Re: Determining password expiration"
- In reply to: John Thompson: "Re: STATUS_OBJECT_NAME_NOT_FOUND"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|