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.
Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus
-
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
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.
-
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.
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