Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:docs:fapi:dosqverify [2018/08/31 09:26] – created prokushev | en:docs:fapi:dosqverify [2021/09/17 08:13] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{page> | ||
+ | |||
+ | ====== DosQVerify ====== | ||
This call returns the value of the verify flag. | This call returns the value of the verify flag. | ||
- | ==Syntax== | + | ===== Syntax ===== |
- | | + | |
- | ==Parameters== | + | <code c> |
- | ;VerifySetting | + | DosQVerify (VerifySetting) |
- | :00H - Verify mode is not active. | + | </ |
- | :01H - Verify mode is active. | + | |
- | ==Return Code== | + | ===== Parameters ===== |
- | rc (USHORT) - return | + | |
- | Return code description is: | + | |
- | * 0 NO_ERROR | + | |
- | ==Remarks== | ||
- | When verify is active, OS/2 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== | + | * VerifySetting ([[PUSHORT]]) - output : Address of the verify mode for the process. |
- | === C Binding=== | + | |
- | < | + | |
- | #define INCL_DOSFILEMGR | + | |
- | USHORT | + | *00H - Verify mode is not active. |
+ | *01H - Verify mode is active. | ||
- | PUSHORT | + | ===== Return Code ===== |
- | USHORT | + | rc ([[USHORT]]) - return |
- | </ | + | |
+ | Return code description is: | ||
- | ===MASM Binding=== | + | * 0 NO_ERROR |
- | < | + | |
- | EXTRN DosQVerify: | + | |
- | INCL_DOSFILEMGR | + | |
- | PUSH@ WORD VerifySetting ;Verify setting (returned) | + | ===== Remarks ===== |
- | CALL | + | |
- | Returns WORD | + | 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 ===== | ||
+ | ==== C Binding ==== | ||
+ | |||
+ | <code c> | ||
+ | #define INCL_DOSFILEMGR | ||
+ | | ||
+ | USHORT | ||
+ | | ||
+ | PUSHORT | ||
+ | | ||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | ==== MASM Binding ==== | ||
+ | |||
+ | <code asm> | ||
+ | EXTRN DosQVerify: | ||
+ | INCL_DOSFILEMGR | ||
+ | | ||
+ | PUSH@ WORD VerifySetting ;Verify setting (returned) | ||
+ | CALL | ||
+ | </ | ||
+ | |||
+ | Returns WORD | ||
- | ====== Note ====== | + | ===== Note ===== |
Text based on http:// | Text based on http:// |