public static string GetErrorDesc(QSPErrorCode error) { var errorMsgptr = QSPGetErrorDesc(error); return(Marshal.PtrToStringUni(errorMsgptr)); }
private static extern IntPtr QSPGetErrorDesc([MarshalAsAttribute(UnmanagedType.I4)] QSPErrorCode error);
public static extern void QSPGetLastErrorData([MarshalAsAttribute(UnmanagedType.I4)] out QSPErrorCode error, ref IntPtr errorLoc, out int errorActIndex, out int errorLine);