search for: getfileinformationbyhandl

Displaying 12 results from an estimated 12 matches for "getfileinformationbyhandl".

2011 Oct 03
1
[LLVMdev] [cfe-dev] Unicode path handling on Windows
...le more I'm not even sure >> using the path is the best solution, it seems it would be better to use >> inode like the unix code does. Windows doesn't support inode (the s_ino >> field in stat), but it does have nFileIndexHigh/nFileIndexLow which are >> exposed via ::GetFileInformationByHandle and is basically the same thing. > > One question I would have about that is whether stat actually opens > the file under the hood. GetFileInformationByHandle requires an open > file handle, which could be expensive depending on the situation. I'd > worry slightly about a per...
2011 Oct 03
0
[LLVMdev] [cfe-dev] Unicode path handling on Windows
...ager code a little more I'm not even sure > using the path is the best solution, it seems it would be better to use > inode like the unix code does. Windows doesn't support inode (the s_ino > field in stat), but it does have nFileIndexHigh/nFileIndexLow which are > exposed via ::GetFileInformationByHandle and is basically the same thing. One question I would have about that is whether stat actually opens the file under the hood. GetFileInformationByHandle requires an open file handle, which could be expensive depending on the situation. I'd worry slightly about a performance hit (networks co...
2011 Oct 03
5
[LLVMdev] [cfe-dev] Unicode path handling on Windows
...ing over the FileManager code a little more I'm not even sure using the path is the best solution, it seems it would be better to use inode like the unix code does. Windows doesn't support inode (the s_ino field in stat), but it does have nFileIndexHigh/nFileIndexLow which are exposed via ::GetFileInformationByHandle and is basically the same thing. This would require refactoring FileSystemStatCache to use a new structure in place of stat that could be shared between Windows and Unix. This would be a lot of small changes but seems like it would be fairly straightforward. On Oct 3, 2011, at 9:21 AM, Nikola Sm...
2001 Aug 05
4
Abiword as test of Wine
One problem with Wine has been that there were few serious open source win32 applications out there to test Wine with (ok, maybe my opinions are from 1997 :-) In any case, we have some great open source Win32 applications to test with. AbiWord is one. I just tried installing AbiWord 0.9 under the latest Codeweavers preview. The install worked -- but generated about a billion warnings of the
2018 Aug 18
1
[PATCH] move CreateFile() function from libFLAC
...ndif 3) #if defined _MSC_VER || defined __MINGW32__ ... #endif It seems for me that the 2nd version makes more sense,so I replaced them all with it. Also this patch removes WINAPI_FAMILY_PARTITION ... CreateFile2 etc stuff from the code. The file src/share/grabbag/file.c contains non-UWP function GetFileInformationByHandle, and nobody complained, so it's OK to use non-UWP CreateFileA/CreateFileW as well. -------------- next part -------------- A non-text attachment was scrubbed... Name: move_function_CreateFile_out_of_libFLAC.patch Type: application/octet-stream Size: 8362 bytes Desc: not available URL: <http...
2013 Apr 20
1
One tiny Windows Unicode patch
...= CreateFile_utf8(f1, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + h2 = CreateFile_utf8(f2, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if(h1 == INVALID_HANDLE_VALUE || h2 == INVALID_HANDLE_VALUE) ok = 0; ok &= GetFileInformationByHandle(h1, &info1); diff --git a/src/share/win_utf8_io/win_utf8_io.c b/src/share/win_utf8_io/win_utf8_io.c index d7d1dbd..d2288d9 100644 --- a/src/share/win_utf8_io/win_utf8_io.c +++ b/src/share/win_utf8_io/win_utf8_io.c @@ -262,3 +262,16 @@ int rename_utf8(const char *oldname, const char *newname)...
2011 Oct 03
0
[LLVMdev] [cfe-dev] Unicode path handling on Windows
...ager code a little more I'm not even sure > using the path is the best solution, it seems it would be better to use > inode like the unix code does. Windows doesn't support inode (the s_ino > field in stat), but it does have nFileIndexHigh/nFileIndexLow which are > exposed via ::GetFileInformationByHandle and is basically the same thing. > This would require refactoring FileSystemStatCache to use a new structure in > place of stat that could be shared between Windows and Unix. This would be a > lot of small changes but seems like it would be fairly straightforward. > > > On Oct 3,...
2011 Oct 03
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
...ing over the FileManager code a little more I'm not even sure using the path is the best solution, it seems it would be better to use inode like the unix code does. Windows doesn't support inode (the s_ino field in stat), but it does have nFileIndexHigh/nFileIndexLow which are exposed via ::GetFileInformationByHandle and is basically the same thing. This would require refactoring FileSystemStatCache to use a new structure in place of stat that could be shared between Windows and Unix. This would be a lot of small changes but seems like it would be fairly straightforward. > > > On Oct 3, 2011, at 9:2...
2011 Oct 03
0
[LLVMdev] [cfe-dev] Unicode path handling on Windows
towlower doesn't seem to work with my test string in Cyrillic. This function does locale-specific conversion, is this what we want? Here's the whole thing, with all the calls to ::stat replaced with llvm::sys::fs::Stat. On Fri, Sep 30, 2011 at 8:04 PM, Bryce Cogswell <bryceco at gmail.com> wrote: > You can use _iswupper and _towlower instead of CharLowerBuffW. They don't
2011 Sep 30
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
You can use _iswupper and _towlower instead of CharLowerBuffW. They don't require windows.h and work with /Za. On Sep 30, 2011, at 12:24 AM, Nikola Smiljanic wrote: > I tried to do the conversion to lowercase inside GetFullPath by adding an additional bool parameter to this function. It's not perfect but seems much better than repeating the whole UTF8 to UTF16 and UTF16 to UTF8
2020 Apr 10
0
Wine release 5.6
...from_pin(). qcap: Iterate over all source pins in find_unconnected_source_from_filter(). qcap: Search downstream pins regardless of whether the category and major type match. ntdll: Silence a warning for FileFsVolumeInformation. kernelbase: Return the volume serial number in GetFileInformationByHandle(). ntdll: Fill the volume serial number in NtQueryInformationFile(FileIdInformation). mountmgr: Assign a unique nonzero serial to all volumes. kernel32: Reimplement is_same_file() using FileIdInformation. kernel32: Implement GetVolumeInformationByHandleW(). user32: Re...
2009 Dec 04
0
Wine release 1.1.34
...formation(). ntdll/tests: Add a FileNameInformation test with filesystem redirection. d3d10core: Add a separate function for device initialization. dxgi: Add a separate function for device initialization. kernel32: Also accept STATUS_BUFFER_OVERFLOW as a valid return code in GetFileInformationByHandle(). dsound: Use wine_dbg_sprintf() in dumpCooperativeLevel(). winmm: Use wine_dbg_sprintf() in a few debug utility functions. winealsa.drv: Use wine_dbg_sprintf() in a few debug utility functions. wineoss.drv: Use wine_dbg_sprintf() in a few debug utility functions. wi...