SetCommitMode

int SetCommitMode (int commit);

Purpose

Use SetCommitMode to change whether CloseFile commits the file to disk before returning.

Parameters

Input
Name Type Description
commit int Specifies whether CloseFile commits the file to disk.

1 Commit file to disk.
0 Do not commit file to disk.

Return Value

Name Type Description
result int Indicates whether the function succeeded.

0 Function succeeded.
–1 Function failed.