createfile 中生成的文件如何清空?

来源:互联网 发布:花粉 网络 编辑:程序博客网 时间:2024/05/22 00:37

很简单:

SetFilePointer(h_Log, 0, FILE_BEGIN);
SetEndOfFile(h_Log);