Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Is there any way to open a file in Windows using ONLY the FRN?

Is there any way to open a file in Windows using ONLY the FRN?

Scheduled Pinned Locked Moved C / C++ / MFC
c++comjsonquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Axter
    wrote on last edited by
    #1

    Is there any way to open a file in Windows using ONLY the FRN (File Reference Number)? This is for a file system that does NOT support change journal, but it does support FRN. I need to be able to open the file only using the FRN, and I'm looking for a Windows API that would allow me to do that.

    Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus

    M 1 Reply Last reply
    0
    • A Axter

      Is there any way to open a file in Windows using ONLY the FRN (File Reference Number)? This is for a file system that does NOT support change journal, but it does support FRN. I need to be able to open the file only using the FRN, and I'm looking for a Windows API that would allow me to do that.

      Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      I don't think the API is going to help you as it deals only with handles (obfuscated pointers to Kernel objects generally). The C Runtime on the other hand does have an indexed table of IO streams which can potentiallly be referenced by number. If I were you that's where I would look but anything like that is going to be a 'hack' so I can't recommend it.:)

      Nothing is exactly what it seems but everything with seems can be unpicked.

      A 1 Reply Last reply
      0
      • M Matthew Faithfull

        I don't think the API is going to help you as it deals only with handles (obfuscated pointers to Kernel objects generally). The C Runtime on the other hand does have an indexed table of IO streams which can potentiallly be referenced by number. If I were you that's where I would look but anything like that is going to be a 'hack' so I can't recommend it.:)

        Nothing is exactly what it seems but everything with seems can be unpicked.

        A Offline
        A Offline
        Axter
        wrote on last edited by
        #3

        I found a solution. IoCreateFile, with flag FILE_OPEN_BY_FILE_ID http://msdn2.microsoft.com/en-us/library/aa490578.aspx

        Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups