To create an lci, you use the function alloclocalitem():
lci = AllocLocalItem (type, id, ident, datasize);
If successful, you will be returned a pointer to an lci having the
specified type, ID, and identification values; and with datasize bytes of
buffer space for your application to use.