Removed __declspec from wrap