Re: STATUS_OBJECT_NAME_NOT_FOUND

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Maxim S. Shatskih (maxim_at_storagecraft.com)
Date: 01/19/05

  • Next message: George M. Garner Jr.: "Re: FSCTL_GET_NTFS_VOLUME_DATA and NTFS version"
    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
    > >>
    > >>
    > >
    > >
    >
    >
    >
    

  • Next message: George M. Garner Jr.: "Re: FSCTL_GET_NTFS_VOLUME_DATA and NTFS version"

    Relevant Pages

    • Re: listing all modules compiled into a kernel instance
      ... declaration (because it isn't a driver). ... The 'device ucom' in a config ... I do understand that it's the source code rather than the configuration file that invokes the macro. ... The argument I am making is that no matter how the ucom source code ends up being compiled into the kernel, the end result is that the ucom device is functionally present and available at run time. ...
      (freebsd-hackers)
    • Re: listing all modules compiled into a kernel instance
      ... components, at least those declared with DRIVER_MODULE, and "config -x" does not improve on the situation at all because components like ucom were not cited in the configuration file. ... there needs to be a reliable way to query an existing kernel that yields a _complete_ list of which components are actually included. ... So why is it a driver when it's done explicitly, but not a driver when done implicitly? ... Who should submit a bug report? ...
      (freebsd-hackers)
    • Re: alsa with 2 soundcards: emu10k1 and intel8x0
      ... > I want to have the possibility of choosing the two soundcards in any ... use the configuration file /etc/asound.conf, ... - tell the driver modules which index the device should have, ... that programs or their output plugins. ...
      (comp.os.linux.hardware)
    • Re: [SLE] lm_sensors Problems
      ... available so it can be accessed when mentioned in the "modprobe" command ... configuration file. ... Perhaps making the smbus-arp entry MODULE_1 instead of MODULE_4? ... >> driver? ...
      (SuSE)
    • Re: Dreaded IRQ10 disabled nobody cares problem!
      ... I think probably boot with a grub configuration file. ... a problem caluse by a driver called intel8x0 which gets ... >>I tried reserver IRQ 10 in the bios, but this does not work, now both ...
      (alt.os.linux.suse)