Calling dBarDefs causes the default values of the OLE variables (which are stored in DBARCODE.INI) to be set equal to the current settings of the OLE variables - ie those use to generate the current image.
This function always returns 0.
More:
dBarSaveImage(filename)