Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The dwSharedMode parameter is known as the sharing mode of a file. According to Microsoft, "An open file that is not shared cannot be opened again, either by the application that opened it or by another application, until its handle has been closed."

The lpSecurityAttributes parameter is used to specify access rights controls for the newly created file. If this parameter is NULL, the created file is assigned default access controls, which is inherited from the parent directory of the file.

Risk Assessment

Creating files without appropriate access permissions may allow unintended access to those files.

...