Fixed global var name issues and pinvoke definitions when getting parameters