__declspec(safe)  is duplicated, please remove one line.