en:docs:fapi:dossetverify

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:docs:fapi:dossetverify [2021/08/20 06:25]
prokushev
en:docs:fapi:dossetverify [2021/12/05 12:03]
prokushev
Line 5: Line 5:
 This call sets the verify switch. This call sets the verify switch.
  
-==Syntax==+===== Syntax ​=====
  
-  ​DosSetVerify (VerifySetting)+<code c> 
 +DosSetVerify (VerifySetting) 
 +</​code>​
  
-==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 ​          ​rc; ​           /* return code */   USHORT ​          ​rc; ​           /* return code */
 +</​code>​
  
-===MASM Binding===+==== MASM Binding ​====
  
 +<code asm>
   EXTRN  DosSetVerify:​FAR   EXTRN  DosSetVerify:​FAR
   INCL_DOSFILEMGR ​    EQU 1   INCL_DOSFILEMGR ​    EQU 1
Line 47: Line 54:
   PUSH   ​WORD ​   VerifySetting ;New value of verify switch   PUSH   ​WORD ​   VerifySetting ;New value of verify switch
   CALL   ​DosSetVerify   CALL   ​DosSetVerify
 +</​code>​
 Returns WORD Returns WORD
  
- +===== Note =====
-====== Note ======+
  
 Text based on [[http://​www.edm2.com/​index.php/​DosSetVerify_(FAPI)]] Text based on [[http://​www.edm2.com/​index.php/​DosSetVerify_(FAPI)]]

en/docs/fapi/dossetverify.txt · Last modified: 2021/12/05 12:03 by prokushev