Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「C:\1.txt」などの名前がわかっている場合、Windows で開いているファイルを閉じる方法 (CreateFile(...) で開かれます)? ありがとう
CreateFile を呼び出したときに作成されたハンドルを閉じるだけです。CloseHandle()
CloseHandle()
ところで、ファイルを処理するための C++ 標準メソッドがあるのに、なぜ Windows API を使用するのでしょうか?
これを見る