Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:docs:fapi:dossetverify [2018/08/30 14:52] – created prokushev | en:docs:fapi:dossetverify [2021/12/05 11:03] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{page> | ||
+ | |||
+ | ====== DosSetVerify ====== | ||
+ | |||
This call sets the verify switch. | This call sets the verify switch. | ||
- | ==Syntax== | + | ===== Syntax ===== |
- | | + | |
- | ==Parameters== | + | <code c> |
- | ;VerifySetting | + | DosSetVerify (VerifySetting) |
- | ''' | + | </ |
- | 0 Verify mode is not active. | + | |
- | | + | |
- | ==Return Code== | + | ===== Parameters ===== |
- | rc (USHORT) - return | + | |
- | Return code descriptions are: | + | |
- | * 0 | + | |
- | * 11 ERROR_INVALID_VERIFY_SWITCH | + | |
- | ==Remarks== | + | * VerifySetting ([[USHORT]]) - input : New state of Verify Mode for the requesting process as shown below: |
- | 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 | + | |
- | ==Example Code== | + | ^ Value ^ Definition ^ |
- | ===C Binding=== | + | | 0 | Verify mode is not active. | |
- | < | + | | 1 | Verify mode is active. | |
- | #define INCL_DOSFILEMGR | + | |
- | USHORT | + | ===== Return Code ===== |
- | USHORT | ||
- | USHORT | + | rc ([[USHORT]]) - return |
- | </ | + | |
+ | Return | ||
+ | | ||
+ | * 11 ERROR_INVALID_VERIFY_SWITCH | ||
- | ===MASM Binding=== | + | ===== Remarks ===== |
- | < | + | |
- | EXTRN DosSetVerify: | + | |
- | INCL_DOSFILEMGR | + | |
- | PUSH | ||
- | CALL | ||
- | Returns WORD | + | 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. |
- | </PRE> | + | |
+ | ===== Example Code ===== | ||
+ | ==== C Binding ==== | ||
+ | <code c> | ||
+ | |||
+ | #define INCL_DOSFILEMGR | ||
+ | | ||
+ | USHORT | ||
+ | | ||
+ | USHORT | ||
+ | | ||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | ==== MASM Binding ==== | ||
+ | |||
+ | <code asm> | ||
+ | EXTRN DosSetVerify: | ||
+ | INCL_DOSFILEMGR | ||
+ | | ||
+ | PUSH | ||
+ | CALL | ||
+ | </ | ||
+ | Returns WORD | ||
- | ====== Note ====== | + | ===== Note ===== |
Text based on [[http:// | Text based on [[http:// |