| 
        
        Parameter
         | 
      
        
        Type
         | 
      
        
        Description
         | 
     
| 
        
        IN
         | 
      ||
| 
        
        hdbc
         | 
      
        
        DAM_HDBC
         | 
      
        
        The connection handle. Set to NULL if the error is related to a statement and not to the connection.
         | 
     
| 
        
        hstmt
         | 
      
        
        DAM_HSTMT
         | 
      
        
        The statement handle. Set to NULL if the error is related to a connection.
         | 
     
| 
        
        iErrorIndex
         | 
      
        
        int
         | 
      
        
        This parameter must be set to DAM_IP_ERROR to indicate an IP-generated error message.
         | 
     
| 
        
        iNativeError
         | 
      
        
        int
         | 
      
        
        Native error as defined by the IP.
         | 
     
| 
        
        szErrorText
         | 
      
        
        char *
        
       
        OAWCHAR *
         | 
      
        
        Text to use in place of the standard text. Data from this buffer is copied into the error queue. Set to NULL to use the default error string.
         | 
     
| 
        
        RETURN
         | 
      ||
| 
        
        NONE
         |