Topic: ZwCreateFile: Why GENERIC_ALL does not give ?
So works: DesiredAccess = FILE_APPEND_DATA | SYNCHRONIZE; And so for some reason is not present (instead of re-records a file): DesiredAccess = GENERIC_ALL | FILE_APPEND_DATA; Well, and so too: DesiredAccess = GENERIC_ALL; to Everyone it is clear that such here "generic" - also, as well as "for dummies" it is malicious, of which it is necessary to get rid. But what exactly there the superfluous? It is declared so: #define GENERIC_ALL (0x10000000L) That too is very bad, by the way. Laziness with it was to paint a constant normally, whether that... P.S. CreateDisposition = FILE_OPEN_IF CreateOptions = FILE_SYNCHRONOUS_IO_NONALERT