io.files.info.windows: add a comment to open-read-handle

locals-and-roots
Alexander Iljin 2016-05-26 10:31:51 +03:00 committed by Doug Coleman
parent aa7a285390
commit 8e2a65e5a2
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ TUPLE: windows-file-info < file-info-tuple attributes ;
INVALID_HANDLE_VALUE = not ; inline
: open-read-handle ( path -- handle/f )
! Parameters of CreateFileW here should match those in open-read.
GENERIC_READ share-mode f
OPEN_EXISTING 0 CreateFile-flags f
CreateFileW [ valid-handle? ] keep f ? ;