fixed: add declspec to export function.