search for: getfilesizeex

Displaying 5 results from an estimated 5 matches for "getfilesizeex".

Did you mean: getfilesize
2007 Sep 25
2
Using callbacks with ReadFileEx
...d = 0.chr * 20 if offset > 0 overlapped[8,4] = [offset].pack(''L'') # OVERLAPPED.Offset end # Ruby''s File.size fails for files over 2gb unless length size = [0].pack(''Q'') GetFileSizeEx(handle, size) length = size.unpack(''Q'').first end buf = 0.chr * length bool = ReadFileEx( handle, buf, length, overlapped, func ) unless bool...
2012 May 24
0
[LLVMdev] Tips for using clang v3.1 on Windows
...he clang docs say). 4. Add both c:\MinGW\bin and clang's bin directory to your path using the PATH command: path c:\tmp\clang-3.1-win32-mingw32\bin;c:\MinGW\bin;%path% 5. Be prepared to have to edit your source files a little as MinGW32 is not entirely Microsoft compatible (there's no GetFileSizeEx() function, for instance). 6. Remember to use MinGW's ranlib, not llvm-ranlib, when you create an indexed archive. The latter won't work and MinGW's ld will reject the library. Sample session: clang++ -c -o a.o a.cpp clang++ -c -o b.o b.cpp llvm-ar rcs Test.lib a.o b.o...
2004 Nov 24
0
File.size implementation
Hi all, In light of the lack of 64 bit support on Windows, and a recent File.size thread, I''ve implemented File.size in win32-file using GetFileSizeEx(). I implemented it a class method of File itself. I should probably implement it as a method of File::Stat, but I didn''t see an immediately obvious way to do that. Suggestions welcome. Dan
2008 Nov 22
2
GetFinalPathNameByHandle for XP and earlier
...# The buf, buf_size, and flags arguments are ignored, but are # present in order to keep the function parameters identical # to the function defined for Windows Vista and later. # def GetFinalPathNameByHandle(handle, buf, buf_size, flags) size_ptr = [0].pack(''Q'') unless GetFileSizeEx(handle, size_ptr) raise get_last_error end if size_ptr.unpack(''Q'')[0] <= 0 raise ''file size must be greater than zero'' end map = CreateFileMapping(handle, nil, PAGE_READONLY, 0, 1, nil) final_path = nil if map &&amp...
2020 Aug 28
0
Wine release 5.16
...ile() when no renderers are present and AMMSF_NORENDER is not specified. amstream: Return S_FALSE when IMediaSeeking::GetDuration() fails in IAMMultiMediaStream::GetDuration(). qcap/tests: Remove unused enumMediaTypes in test_smart_tee_filter() (Coverity). quartz: Close hfile when GetFileSizeEx fails in IFileSourceFilter::Load() (Coverity). amstream: Implement IMediaStreamFilter::ReferenceTimeToStreamTime(). Jacek Caban (38): kernelbase: Use IOCTL_CONDRV_SET_INPUT_INFO in SetConsoleCP. kernelbase: Use IOCTL_CONDRV_SET_INPUT_INFO in SetConsoleOutputCP. kernelbase:...