Displaying 5 results from an estimated 5 matches for "by_handle_file_inform".
2004 Dec 14
2
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
I'm implementing this right now. BY_HANDLE_FILE_INFORMATION isn't the
correct API, as Path doesn't have an open file handle handy. Nor does
it need one.
Reid Spencer wrote:
>Henrik,
>
>modTime.fromWin32Time(ftLastWriteTime);
> Note that you'll need write a "fromWin32Time" for the TimeValue
> class to make the...
2004 Dec 14
0
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
Okay. Sounds good. Look forward to it.
Reid
On Mon, 2004-12-13 at 20:34, Jeff Cohen wrote:
> I'm implementing this right now. BY_HANDLE_FILE_INFORMATION isn't the
> correct API, as Path doesn't have an open file handle handy. Nor does
> it need one.
>
> Reid Spencer wrote:
>
> >Henrik,
> >
> >modTime.fromWin32Time(ftLastWriteTime);
> > Note that you'll need write a "fromWin32Time&qu...
2004 Dec 13
2
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
Hi,
Does any one have an idea which fields and how to the values correctly of
the StatusInfo struct when dealing with the information returned in the
BY_HANDLE_FILE_INFORMATION struct
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/by_handle_file_information_str.asp)
from windows instead of the unix stuff in getStatusInfo:
--- (excerpt start) -------------
info.fileSize = buf.st_size;
info.modTime.fromEpochTime(buf.st_mtime);
in...
2004 Dec 13
0
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
...(to avoid Unix issues):
user = 9999;
group = 9999;
mode = 0777;
Reid.
On Mon, 2004-12-13 at 15:15, Henrik Bach wrote:
> Hi,
>
> Does any one have an idea which fields and how to the values correctly of
> the StatusInfo struct when dealing with the information returned in the
> BY_HANDLE_FILE_INFORMATION struct
> (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/by_handle_file_information_str.asp)
> from windows instead of the unix stuff in getStatusInfo:
>
> --- (excerpt start) -------------
> info.fileSize = buf.st_size;
> info.modTime.fro...
2013 Apr 20
1
One tiny Windows Unicode patch
...);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/src/share/grabbag/file.c b/src/share/grabbag/file.c
index dd2880c..a3706f1 100644
--- a/src/share/grabbag/file.c
+++ b/src/share/grabbag/file.c
@@ -127,8 +127,8 @@ FLAC__bool grabbag__file_are_same(const char *f1, const char *f2)
BY_HANDLE_FILE_INFORMATION info1, info2;
HANDLE h1, h2;
BOOL ok = 1;
- h1 = CreateFile(f1, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
- h2 = CreateFile(f2, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+ h1 = CreateFile_utf8(f1, GENERIC_READ,...