Unique File ID

Discussion in 'Windows Vista Drivers' started by julian.navascues, Sep 14, 2007.

  1. Hi all,

    I want to identify files and dirs in unique way inside a kernel mode
    driver (no-collision needed, NT 4.0 compatible). The ideas that come
    to me are:

    1. File paths in long filename format (not 8.3 short names)

    But I dont find any way to convert 8.3-format in long filename in
    kernel mode. And I dont want to use short names as ID because they are
    not unique (i.e. removing and recreating files in different order with
    8.3 collision). I wish I could make this conversion.

    2. nFileIndexHigh and nFileIndexLow members in
    BY_HANDLE_FILE_INFORMATION

    I mean, work in this line, although Im not sure if it works in NT 4:

    http://msdn2.microsoft.com/en-us/library/Aa363788.aspx

    ""The identifier that is stored in the nFileIndexHigh and
    nFileIndexLow members is called the file ID. Support for file IDs is
    file system-specific. File IDs are not guaranteed to be unique over
    time, because file systems are free to reuse them. In some cases, the
    file ID for a file can change over time.""



    Any ideas will really welcomed,

    Thanks,

    Julián
     
    julian.navascues, Sep 14, 2007
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.