search for: getdiskfreespace

Displaying 9 results from an estimated 9 matches for "getdiskfreespace".

Did you mean: getdiskfreespacew
2004 Nov 25
0
getdiskfreespace
Hi all, I was just working on the FILE_FLAG_NO_BUFFERING stuff again. I''m a little confused about determining the cluster size. According to the MSDN docs, using GetDiskFreeSpace() on disks over 2GB may return incorrect values. Some threads on comp.os.ms-windows.* seem to support this as well. I did come across this, however: http://www.codeguru.com/Cpp/W-P/system/article.php/c2885/ On the other hand, it doesn''t seem many people are using this, instead relyin...
2004 Nov 25
0
getdiskfreespace, revisited
Further research indicates that GetDiskFreeSpace() is still ok for getting sector size, regardless of actual disk size. In any case, I''m going to default to 512 in the unlikely event that the call fails, rather than raise an error. Dan
2008 Aug 18
0
Playing with NtQueryInformationFile
...> have the file _name_, but I''d like to get it from the file > _handle_ so > > I can make it work properly. > > I''m looking for the allocation size of a file given its name, > actually. > What "easy enough" solution am I blindly missing? Use GetDiskFreeSpace, then multiply the sectors by the bytes. My email is a bit misleading, since it''s not really the file name itself that matters, but the root path of the file, since all files on the same filesystem have the same blocksize. For relative paths, just pass nil as the file name, and it will de...
1998 Jul 17
3
9GB Drives Show Up as 4GB
In NT Explorer, my 9GB usr shares show up as 4GB. Any suggestions? Doug Smith
2004 Dec 29
2
Cluster size not supported
...abled, so we will see if > > that is right. > > Well I tried on a system with Reiserfs (version 3.6, kernel 2.6.8.1) > and > current cvs wine. It just works (installing dcom98). Lilo.conf contains > lba32. > > If you still want to continue, we will have to debug the > GetDiskFreeSpace function. > > There is a little test program at > http://www.xs4all.nl/~rklazes/temp/fds.exe.gz that reports the output > of > this function. You use it as > > wine fds 'c:\' > > This is the code: > > | #include <windows.h> > | int main(int argc, c...
2004 Nov 21
3
win32-file, overlapped added
Hi all, I''ve got overlapped and offset support in both nread and nwrite. The only thing left before I want to release this (as 0.4.0) is to get NO_BUFFERING to work. Unfortunately, I can''t get it to work. Park, I looked at that site you sent (and borrowed some code from it), but I don''t see anything special happening for NO_BUFFERING. I thought it required
2007 Sep 25
2
Using callbacks with ReadFileEx
Hi all, First, I just realized I''ll need to go back and fix some of the prototype declarations for windows-pr. The callback parameters will now need to be set to ''K''. ReadFileEx is one example of this. For purposes of my question, let''s assume ReadFileEx has been declared like so: API.new(''ReadFileEx'', ''LPLPK'',
2009 Feb 13
0
Wine release 1.1.15
...ger needed check for -fshort-wchar. ntoskrnl.exe: Correctly remove the vectored exception handler. ntdll: Add a trace when calling vectored exception handlers too. kernel32/tests: Print some more details on directory test failures. kernel32/tests: Allow more error codes from GetDiskFreeSpace. kernel32/tests: Use a better invalid filename than "foo". kernel32/tests: Don't hardcode C drive for CreateDirectory tests. kernel32/tests: Add another error code in the CreateDirectory test. setupapi/tests: Don't compare the drive letter of expanded file...
2009 Feb 27
0
Wine release 1.1.16
...doesn't behave correctly. user32/tests: Fix some checks of the key value in accelerators. secur32: Properly initialize the helper structure when fork support is missing. kernel32/tests: Fix the last remaining failure on NT4. kernel32/tests: Add a few more error codes for GetDiskFreeSpace. winmm/tests: Assume volume is not supported if waveGetOutVolume fails. configure: Try to avoid warnings in checks to support configuring with -Werror. configure: Don't set target flags if build and host are the same. wrc: Print better error messages for functions that s...