Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:fapi:dossetverify [2021/08/20 04:25] – prokushev | en:docs:fapi:dossetverify [2021/12/05 11:03] (current) – prokushev | ||
---|---|---|---|
Line 5: | Line 5: | ||
This call sets the verify switch. | This call sets the verify switch. | ||
- | ==Syntax== | + | ===== Syntax |
- | | + | <code c> |
+ | DosSetVerify (VerifySetting) | ||
+ | </ | ||
- | ==Parameters== | + | ===== Parameters |
- | * VerifySetting (USHORT) - input : New state of Verify Mode for the requesting process as shown below: | + | * VerifySetting ([[USHORT]]) - input : New state of Verify Mode for the requesting process as shown below: |
^ Value ^ Definition ^ | ^ Value ^ Definition ^ | ||
Line 17: | Line 19: | ||
| 1 | Verify mode is active. | | | 1 | Verify mode is active. | | ||
- | ==Return Code== | + | ===== Return Code ===== |
- | *rc (USHORT) - return | + | |
+ | rc ([[USHORT]]) - return | ||
| | ||
Return code descriptions are: | Return code descriptions are: | ||
Line 25: | Line 28: | ||
* 11 ERROR_INVALID_VERIFY_SWITCH | * 11 ERROR_INVALID_VERIFY_SWITCH | ||
- | ==Remarks== | + | ===== 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. | 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== | + | ===== Example Code ===== |
- | ===C Binding=== | + | ==== C Binding ==== |
+ | <code c> | ||
#define INCL_DOSFILEMGR | #define INCL_DOSFILEMGR | ||
Line 39: | Line 44: | ||
| | ||
USHORT | USHORT | ||
+ | </ | ||
- | ===MASM Binding=== | + | ==== MASM Binding |
+ | <code asm> | ||
EXTRN DosSetVerify: | EXTRN DosSetVerify: | ||
INCL_DOSFILEMGR | INCL_DOSFILEMGR | ||
Line 47: | Line 54: | ||
PUSH | PUSH | ||
CALL | CALL | ||
+ | </ | ||
Returns WORD | Returns WORD | ||
- | + | ===== Note ===== | |
- | ====== Note ====== | + | |
Text based on [[http:// | Text based on [[http:// |