Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:fapi:dossetverify [2018/09/01 17:18] – prokushev | en:docs:fapi:dossetverify [2021/12/05 11:03] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{logos:os2.gif? | + | {{page>en:templates:fapiint}} |
====== DosSetVerify ====== | ====== DosSetVerify ====== | ||
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 | + | ^ Value ^ Definition ^ |
- | | 0 | | + | | 0 | Verify mode is not active. | |
- | | 1 | | + | | 1 | Verify mode is active. | |
- | ==Return Code== | + | ===== Return Code ===== |
- | rc (USHORT) - return | + | |
- | Return code descriptions are: | + | |
- | * 0 | + | |
- | * 11 ERROR_INVALID_VERIFY_SWITCH | + | |
- | ==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== | + | rc ([[USHORT]]) - return |
- | ===C Binding=== | + | |
- | <PRE> | + | Return code descriptions are: |
- | #define INCL_DOSFILEMGR | + | * 0 |
+ | * 11 ERROR_INVALID_VERIFY_SWITCH | ||
- | USHORT | + | ===== Remarks ===== |
- | USHORT | ||
- | USHORT | + | 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. |
- | </ | + | |
- | ===MASM Binding=== | + | ===== Example Code ===== |
- | <PRE> | + | ==== C Binding |
- | EXTRN DosSetVerify: | + | <code c> |
- | INCL_DOSFILEMGR | + | |
- | PUSH | + | |
- | CALL | + | |
+ | USHORT | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
- | Returns WORD | + | ==== MASM Binding ==== |
- | </ | + | |
+ | <code asm> | ||
+ | EXTRN DosSetVerify: | ||
+ | INCL_DOSFILEMGR | ||
+ | | ||
+ | PUSH | ||
+ | CALL | ||
+ | </ | ||
+ | Returns WORD | ||
- | ====== Note ====== | + | ===== Note ===== |
Text based on [[http:// | Text based on [[http:// |