You can find here how to control an external DLL with lite-C:

http://manual.3dgamestudio.net/litec_api.htm