Question discussion

If CloseHandle is NOT called after opening a file with CreateFile, which of the following issues might occur?

358809Medium DSSSB TGT Computer Science 0 replies 0 views
0
If CloseHandle is NOT called after opening a file with CreateFile, which of the following issues might occur?
  • AThe file will be corrupted.
  • BResources associated with the file may not be released.
  • CThe file may not be accessible.
  • DThe file will become read-only.
Correct answer: B

Explanation

CloseHandle releases the resources of an open handle. If it is not called, the resources stay allocated (a handle leak) until the process ends.

Discussion 0

Nobody has replied yet. Start the discussion!