This example creates then sets the values for a layout object.
#include <layout.h> LAYOUT_OBJECT plh; LAYOUT_VALUES layout[2]; LAYOUT_TEXT_DESCRIPTOR Descr; ULONG index; ULONG RC; RC= LayoutCreateObject (Locale_Arabic,&plh); /* or: Locale_Hebrew */ if (RC) { printf("Create Error! !!\n"); exit(0);} layout[0].name = TypeOfText ; layout[0].value = &Descr ; Descr.in = TEXT_IMPLICIT; Descr.out = TEXT_VISUAL; layout[1].name = 0 ; /* Set the LayoutValues */ RC=LayoutSetValues (plh,layout,&index); if (RC) { printf("SetValue Error at index %d !!!\n",index); exit(0); } RC = LayoutDestroyObject(plh); if (RC) { printf(" DESTROY Error!!!\n"); exit(0);}