-
-
[求助]ZwWriteFile怎么老是覆盖原来的内容,不在文件尾巴新写啊
-
发表于:
2017-5-1 22:12
3089
-
[求助]ZwWriteFile怎么老是覆盖原来的内容,不在文件尾巴新写啊
Status = ZwCreateFile(
&SourceFileHandle,
GENERIC_WRITE,
&ObjectAttributes,
&IoStatusBlock,
NULL,
FILE_ATTRIBUTE_NORMAL,
FILE_SHARE_READ | FILE_SHARE_WRITE,
FILE_OPEN_IF,
FILE_NON_DIRECTORY_FILE |
FILE_RANDOM_ACCESS |
FILE_SYNCHRONOUS_IO_NONALERT,
NULL,
0);
Status = ZwWriteFile(
SourceFileHandle,
NULL,
NULL,
NULL,
&IoStatusBlock,
Buffer,
Length,
NULL,
NULL);
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!