É possível retornar um LPWSTR da DLL do C ++ para o aplicativo C #

A definição da função C ++ é esta

__declspec(dllexport) LPWSTR __stdcall GetErrorString(int errCode);

E eu chamo isso em C # assim

 [DllImport("DLLTest.dll")]
 public static extern string GetErrorString(int errCode);

 static void Main(string[] args)
{
    string result = GetErrorString(5);
}

Eu recebo uma exceção sem tratamento do tipo System.Runtime.InteropServices.SEHException

Não tenho certeza se está tudo bem para a DLL C ++ tentar retornar um LPWSTR para C # ...

Obrigado

questionAnswers(4)

yourAnswerToTheQuestion