NLM VS_API refactoring