en:docs:fapi:dosqverify

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:dosqverify [2018/09/02 01:25] prokusheven:docs:fapi:dosqverify [2021/09/17 08:13] (current) prokushev
Line 1: Line 1:
-{{logos:os2.gif?35x35}} {{logos:dos.gif?35x35}}+{{page>en:templates:fapiint}}
  
 ====== DosQVerify ====== ====== DosQVerify ======
Line 5: Line 5:
 This call returns the value of the verify flag. This call returns the value of the verify flag.
  
-==Syntax==+===== Syntax =====
  
-  DosQVerify (VerifySetting)+<code c> 
 +DosQVerify (VerifySetting) 
 +</code>
  
-==Parameters==+===== Parameters =====
  
-  * VerifySetting (PUSHORT) - output : Address of the verify mode for the process.+ 
 +  * VerifySetting ([[PUSHORT]]) - output : Address of the verify mode for the process.
  
     *00H - Verify mode is not active.     *00H - Verify mode is not active.
     *01H - Verify mode is active.     *01H - Verify mode is active.
  
-==Return Code==+===== Return Code =====
  
-  rc (USHORT) - return+rc ([[USHORT]]) - return
      
 Return code description is: Return code description is:
Line 24: Line 27:
   * 0    NO_ERROR   * 0    NO_ERROR
  
-==Remarks==+===== Remarks =====
  
 When verify is active, OS 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 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 43:
      
   USHORT           rc;            /* return code */   USHORT           rc;            /* return code */
 +</code>
  
-===MASM Binding===+==== MASM Binding ====
  
 +<code asm>
   EXTRN  DosQVerify:FAR   EXTRN  DosQVerify:FAR
   INCL_DOSFILEMGR     EQU 1   INCL_DOSFILEMGR     EQU 1
Line 46: Line 53:
   PUSH@  WORD    VerifySetting ;Verify setting (returned)   PUSH@  WORD    VerifySetting ;Verify setting (returned)
   CALL   DosQVerify   CALL   DosQVerify
 +</code>
  
 Returns WORD Returns WORD
  
-====== Note ======+===== Note =====
  
 Text based on http://www.edm2.com/index.php/DosQVerify Text based on http://www.edm2.com/index.php/DosQVerify