Displaying 5 results from an estimated 5 matches for "nfilesizelow".
2004 Dec 14
2
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
...2Time(ftLastWriteTime);
> Note that you'll need write a "fromWin32Time" for the TimeValue
> class to make the conversion of ftLastWriteTime to TimeValue's
> notion of normalized time.
>
>isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
>
>fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8);
>
>The mode, user, and group fields aren't applicabe to Win32 so just set
>them as follows (to avoid Unix issues):
>
>user = 9999;
>group = 9999;
>mode = 0777;
>
>Reid.
>
>On Mon, 2004-12-13 at 15:15, Henrik Bach wrote...
2004 Dec 13
0
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
Henrik,
modTime.fromWin32Time(ftLastWriteTime);
Note that you'll need write a "fromWin32Time" for the TimeValue
class to make the conversion of ftLastWriteTime to TimeValue's
notion of normalized time.
isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8);
The mode, user, and group fields aren't applicabe to Win32 so just set
them as follows (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 i...
2004 Dec 14
0
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
...Note that you'll need write a "fromWin32Time" for the TimeValue
> > class to make the conversion of ftLastWriteTime to TimeValue's
> > notion of normalized time.
> >
> >isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
> >
> >fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8);
> >
> >The mode, user, and group fields aren't applicabe to Win32 so just set
> >them as follows (to avoid Unix issues):
> >
> >user = 9999;
> >group = 9999;
> >mode = 0777;
> >
> >Reid.
> >...
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) -------------
2007 Oct 04
0
Prototyping the Dir class
...39;
require ''windows/handle''
# Struct sizes (ANSI/Wide)
#
# WIN32_FIND_DATA: 320/592
# [0,4] => dwFileAttributes
# [4,8] => ftCreationTime
# [12,8] => ftLastAccessTime
# [20,8] => ftLastWriteTime
# [28,4] => nFileSizeHigh
# [32,4] => nFileSizeLow
# [36,4] => dwReserved0
# [40,4] => dwReserved1
# [44,260/520] => cFileName[MAX_PATH]
# [304,14] => cAlternateFileName[14]
class MyDir
include Windows::Error
include Windows::File
include Windows::Unicode
include Windows::Directory
include Windows::P...