Bar2D2m

 int WINAPI Bar2D2m(LPSTR bufin, LPRECT lpRect,LPHANDLE hmf);

where

bufin is a pointer to a null-terminated string containing the barcode data. (Group 2 calls cannot include ASCII 0 in a data stream.)

lpRect is a pointer to a RECT structure that receives the rectangle enclosing the barcode in HIMETRIC units.

hmf is a pointer to a HANDLE that receives the HMETAFILE handle. Note that it is the users responsibility to delete this metafile when no longer required.

Calls to Bar2D2m create the barcode metafile image using the barcode data in the string pointed to by bufin and the properties specified in the embedded BARCODE2D structure; the metafile handle is placed in hmf and the rectangle containing the image (in HIMETRIC units) is placed in the RECT structure pointed to by lpRect. The call returns an error code in the event of an error, otherwise it returns 0.

 

More:

Bar2D2mx