I successfully got a transaction handle by CreateTransaction function, then I try to call CreateFileTransactedW with the transaction handle, but failed and get errror code 6725 (ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED).
Here’s my create transaction handle code:
global.transaction_handle = CreateTransaction(NULL, 0, 0, 0, 0, INFINITE, NULL);
And the CreateFileTransactedW code is:
USHORT miniVer = 0xFFFE; // TXFS_MINIVERSION_DEFAULT_VIEW
HANDLE hFile = CreateFileTransactedW(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile, global.transaction.transaction_handle, &miniVer, NULL);
I wonder why CreateFileTransactedW fail, and want to know how to solve this problem.
Pink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.