Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Getting the NT system directory from within a driver on NT

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Does anyone know how to do this? In fact, all I want to actually get is the
device name of the drive on which the Windows NT system directory resides.

Regards,

i.

Ivan Lewis-Coker
Software Developer
AppSense Technologies
Europa Way
Bird Hall Lane
Cheadle Heath
Stockport
SK3 0WY

Tel: +44 (0) 161 610 4200
Fax:+44 (0) 161 610 4242

email: [email protected]
www: http://www.appsense.net




CONFIDENTIAL
The contents of this email and any attachments may be
confidential. It is intended for the named recipient(s).
If you are not the named recipient please notify the sender
immediately and do not disclose the contents to any other
person or make any copies.

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Hello,

    Query the contents of the symbolic link object named
    "\SystemRoot" using ZwOpenSymbolicLinkObject and
    ZwQuerySymbolicLinkObject native API calls. The
    contents of the symbolic link contains the complete
    path such as \Device\HardDisk0\Partition0\WINNT.

    -Prasad


    --- [email protected] wrote:
    > Does anyone know how to do this? In fact, all I want
    > to actually get is the
    > device name of the drive on which the Windows NT
    > system directory resides.
    >
    > Regards,
    >
    > i.
    >
    > Ivan Lewis-Coker
    > Software Developer
    > AppSense Technologies
    > Europa Way
    > Bird Hall Lane
    > Cheadle Heath
    > Stockport
    > SK3 0WY
    >
    > Tel: +44 (0) 161 610 4200
    > Fax:+44 (0) 161 610 4242
    >
    > email: [email protected]
    > www: http://www.appsense.net
    >
    >
    >
    >
    > CONFIDENTIAL
    > The contents of this email and any attachments may
    > be
    > confidential. It is intended for the named
    > recipient(s).
    > If you are not the named recipient please notify the
    > sender
    > immediately and do not disclose the contents to any
    > other
    > person or make any copies.
    >
    > ---
    > You are currently subscribed to ntdev as:
    > [email protected]
    > To unsubscribe send a blank email to
    > $subst('Email.Unsub')
    >
    >

    =====
    Prasad S. Dabak
    Director of Engineering, Windows NT/2000 Division
    Cybermedia Software Private Limited
    http://www.cybermedia.co.in
    Co-author of the book "Undocumented Windows NT"
    ISBN 0764545698

    __________________________________________________
    Do You Yahoo!?
    Send online invitations with Yahoo! Invites.
    http://invites.yahoo.com
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 January 2023 Live, Online
Developing Minifilters 20 March 2023 Live, Online
Writing WDF Drivers TBD 2023 Live, Online
Internals & Software Drivers 17 April 2023 Live, Online