14.03.2016 20:34, Leyne, Sean wrote:
> Alex,
>
>> Sean, if we limit ourself to only already opened files - we have no problems.
>> But there are places (like per-database config) where we are not sure does
>> file exist and if yes is it opened or not. For posix (where file ID exists no
>> matter is file opened or not) I'm currently using fast and precise by-ID
>> lookup, but if it cant be used - lookup by name is anyway needed nad
>> anyway used. If there is a way to generate stable (i.e. not depending upon
>> opened file or not) file ID on windows this must be done (sorry I've lost a 
>> bit
>> in this discussion re. this issue).
>
> The BY_HANDLE_FILE_INFORMATION FileIndex+Volume Serial Number properties do 
> provide such a stable/unique file ID.

  No. It is "stable" only until file is open. It could be changed after all 
handles for
given file is closed. There is no stable mapping of file name to "file id" in 
Win API,
AFAIK.

Regards,
Vlad


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to