en:docs:fapi:dossetverify

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:docs:fapi:dossetverify [2018/09/01 17:29] prokusheven:docs:fapi:dossetverify [2021/12/05 11:03] (current) prokushev
Line 1: Line 1:
-{{logos:os2.gif?35x35}} {{logos:dos.gif?35x35}}+{{page>en:templates:fapiint}} 
 ====== DosSetVerify ====== ====== DosSetVerify ======
  
 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 16: 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 24: 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 38: 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 46: 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)]]