Added wrapper for CoCreateInstance(). Removed duplicate definition. Simplified CopyTo().