develooper Front page | perl.perl5.porters | Postings from December 2003

Re: [PATCH] Re: perl @ 21830

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
December 5, 2003 00:42
Subject:
Re: [PATCH] Re: perl @ 21830
Message ID:
20031205084210.2766.2@llama.elixent.com
Jody Belka <lists-p5p@pimb.org> writes:
>
>dwVolumeSerialNumber
>    Serial number of the volume that contains the file.

Roughly dev.

>
>nFileIndexHigh
>    High-order part of a unique identifier associated with the file.
>
>nFileIndexLow
>    Low-order part of a unique identifier associated with the file.
>

Roughly inode - but at least twice the size.
I toyed with having Win32's stat return inode as a BigInt at one point.
(A string would be easy but too much code uses == which forces it back 
 to numeric.)


>To quote on FileIndex from the BY_HANDLE_FILE_INFORMATION reference,
>
>[[
>Note that this value is useful only while the file is open by at least one
>process. If no processes have it open, the index may change the next time
>the file is opened.
>
>The identifier (low and high parts) and the volume serial number uniquely
>identify a file on a single computer. To determine whether two open
>handles represent the same file, combine this identifier and the volume
>serial number for each file and compare them.
>]]
>
>
>References for all of the above:
>
>CreateFile - http://xrl.us/CreateFile
>GetFileInformationByHandle - http://xrl.us/GetFileInformationByHandle
>BY_HANDLE_FILE_INFORMATION - http://xrl.us/ByHandleFileInformation
>
>
>HTH


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About