nError = LSopenLogFileLng(@nEnv, "c:\temp\file.log")
nEnv is passed by reference -- notice '@' character before its name.
Probably it is a handle to the log file. You have to pass it by reference because the LSopenLogFileLng will change it by opening the log file "c:\temp\file.log".