Removed memcpy since we don't really need it and add GlobalUnlock.