Ask for the implementation of the file delete #379
Answered
by
LTRData
ZhangHuan0407
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
LTRData
Aug 24, 2025
Replies: 1 comment
-
It all depends on how applications call it. Either they call And yes, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ZhangHuan0407
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It all depends on how applications call it. Either they call
CreateFile
withFILE_FLAG_DELETE_ON_CLOSE
specified and then callCloseHandle
, or they callDeleteFile
which internally callsCreateFile
,DeleteFile
andCloseHandle
.And yes,
CreateFile
is used to both create new files and open existing files and directories.