The BarFont call generates a barcode string using the x parameter as the data and the current default barcode properties. On exit the y parameter contains the barcode string, fa contains the FaceName (Font.Name) of the current barcode font, and ht contain the font height (in points).
VB declaration
Declare Function BarFont Lib "DFONT32.DLL" (ByVal x As String, ByVal y As String, ByVal fa As String, ByRef ht As Long) As Long
Note that VB Strings that are to receive characters must be created before the function is called and must contain sufficient space to receive the characters (eg. y=String(255,vbNullChar))
C declaration
int WINAPI BarFont(LPSTR szin, LPSTR szout, LPSTR fname, LPINT fht);
The szout and fname pointers must point to char arrays that are large enough to receive the barcode string and facename (24 characters) respectively. To account for the largest possible szout string, szout should point to an array that is at least n+5 in length, where n is the length of the szin input string.
More: