wineserver CreateFile flags

Andreas Mohr andi at rhlx01.fht-esslingen.de
Mon Jun 13 10:57:26 CDT 2005


Hi,

the create_file request checks for GENERIC_READ or GENERIC_WRITE,
but not for GENERIC_ALL.

http://groups.google.de/group/microsoft.public.vc.language/browse_thread/thread/167a5c6c5460f77c/f9e971b2f468cba4?q=CreateFile+GENERIC_ALL&rnum=20#f9e971b2f468cba4

Documented on MSDN via
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/createfile.asp
-->
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/file_security_and_access_rights.asp
-->
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/generic_access_rights.asp

This might be an issue since some programs might want to do a CreateFile
call with GENERIC_ALL.
Only few programs do, however, and there is a reason for it:
http://groups.google.de/group/microsoft.public.vc.language/browse_thread/thread/167a5c6c5460f77c/f9e971b2f468cba4?q=CreateFile+GENERIC_ALL&rnum=20#f9e971b2f468cba4
indicates that GENERIC_ALL is problematic, so maybe it's not too bad
that wineserver doesn't support it properly.

JFYI,

Andreas



More information about the wine-devel mailing list