LabWindows/CVI

Content Type
Programming Language
Current manual

SetCommitMode

int SetCommitMode (int commit);

Purpose

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

Caution  The Windows SDK also contains a function with the same name. Include windows.h before including formatio.h to ensure that there are no compilation errors as a result of this naming conflict. Define the SDK_CONFLICT_PRIORITYSDK_CONFLICT_PRIORITY macro to force LabWindows/CVI to use the Windows SDK implementation of this function.

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.

Additional Information

Library: Formatting and I/O Library

Include file: formatio.h

LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later

Was this information helpful?

Log in to get a better experience

Help us improve your future ni.com experience.

What are you trying to do?

Submit