Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dwDesiredAccess flags in CreateFile are not working #11

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Closed

dwDesiredAccess flags in CreateFile are not working #11

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Call CreateFile on a dokan mounted drive with GENERIC_READ and or 
GENERIC_WRITE set for the "dwDesiredAccess" argument
2. Observe how the CreateFile dokan driver callback provides a seemingly 
bogus value of 1245599 (0x13019F).
3.
#define GENERIC_READ    0x80000000
#define GENERIC_WRITE   0x40000000

What is the expected output? What do you see instead?
Expected: Correct values for dwDesiredAccess when using CreateFile
Actual: What seems like a random value

What version of the product are you using? On what operating system?
Dokan: 0.3.7
OS: Windows XP Home SP3

Please provide any additional information below.
This is likely not only an issue with GENERIC_READ and _WRITE but probably 
any other flag used to define the access mode.

Original issue reported on code.google.com by dres.sch...@gmail.com on 21 Sep 2008 at 8:06

@GoogleCodeExporter
Copy link
Author

Hello,
Working as intended.
Please see the flowing page.
http://msdn.microsoft.com/en-us/library/aa364399(VS.85).aspx

GENERIC_READ and GENERIC_WRITE can be shown as combination of specific options.

GENERIC_EXECUTE = FILE_READ_ATTRIBUTES | STANDARD_RIGHTS_EXECUTE | SYNCHRONIZE
GENERIC_READ = FILE_READ_ATTRIBUTES | FILE_READ_DATA | FILE_READ_EA | 
STANDARD_RIGHTS_READ |SYNCHRONIZE
GENERIC_WRITE = FILE_APPEND_DATA | FILE_WRITE_ATTRIBUTES | FILE_WRITE_DATA | 
FILE_WRITE_EA | STANDARD_RIGHTS_WRITE | 
SYNCHRONIZE

Original comment by asa...@gmail.com on 28 Sep 2008 at 8:47

  • Changed state: WontFix
  • Added labels: DokanLibrary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant