CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2000
    Location
    New Jersey
    Posts
    968

    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 (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.
    David Maisonave
    Author of Policy Based Synchronized Smart Pointer
    http://axter.com/smartptr


    Top ten member of C++ Expert Exchange.
    C++ Topic Area

  2. #2
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

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

    Perhaps this helps?

    IoCreateFile, with flag FILE_OPEN_BY_FILE_ID

    http://msdn2.microsoft.com/en-us/library/aa490578.aspx
    Nobody cares how it works as long as it works

  3. #3
    Join Date
    Aug 2000
    Location
    New Jersey
    Posts
    968

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

    Great.

    Thanks, that should work.
    David Maisonave
    Author of Policy Based Synchronized Smart Pointer
    http://axter.com/smartptr


    Top ten member of C++ Expert Exchange.
    C++ Topic Area

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured