Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:fapi:dosqverify [2021/08/20 04:21] – prokushev | en:docs:fapi:dosqverify [2021/09/17 08:13] (current) – prokushev | ||
---|---|---|---|
Line 5: | Line 5: | ||
This call returns the value of the verify flag. | This call returns the value of the verify flag. | ||
- | ==Syntax== | + | ===== Syntax |
- | | + | <code c> |
+ | DosQVerify (VerifySetting) | ||
+ | </ | ||
- | ==Parameters== | + | ===== Parameters |
- | | + | |
+ | | ||
*00H - Verify mode is not active. | *00H - Verify mode is not active. | ||
*01H - Verify mode is active. | *01H - Verify mode is active. | ||
- | ==Return Code== | + | ===== Return Code ===== |
- | | + | rc ([[USHORT]]) - return |
| | ||
Return code description is: | Return code description is: | ||
Line 24: | Line 27: | ||
* 0 NO_ERROR | * 0 NO_ERROR | ||
- | ==Remarks== | + | ===== Remarks |
When verify is active, OS performs a verify operation each time it does a file write to assure proper data recording on the disk. Although disk recording errors are rare, this function has been provided for applications to verify the proper recording of critical data. | When verify is active, OS performs a verify operation each time it does a file write to assure proper data recording on the disk. Although disk recording errors are rare, this function has been provided for applications to verify the proper recording of critical data. | ||
- | ==Example Code== | + | ===== Example Code ===== |
- | === C Binding=== | + | |
+ | ==== C Binding | ||
+ | <code c> | ||
#define INCL_DOSFILEMGR | #define INCL_DOSFILEMGR | ||
| | ||
Line 38: | Line 43: | ||
| | ||
USHORT | USHORT | ||
+ | </ | ||
- | ===MASM Binding=== | + | ==== MASM Binding |
+ | <code asm> | ||
EXTRN DosQVerify: | EXTRN DosQVerify: | ||
INCL_DOSFILEMGR | INCL_DOSFILEMGR | ||
Line 46: | Line 53: | ||
PUSH@ WORD VerifySetting ;Verify setting (returned) | PUSH@ WORD VerifySetting ;Verify setting (returned) | ||
CALL | CALL | ||
+ | </ | ||
Returns WORD | Returns WORD | ||
- | ====== Note ====== | + | ===== Note ===== |
Text based on http:// | Text based on http:// |