Ejemplo n.º 1
0
 /// <summary>
 /// Escape special characters such as \n, \t in str with backslashes.
 /// The returned value is a newly allocated string which should be freed by the caller.
 /// </summary>
 /// <param name="str"></param>
 /// <param name="size"></param>
 /// <returns></returns>
 public static string MapiQuote(string str, int size)
 {
     return(Marshal.PtrToStringAnsi(CMapiLib.mapi_quote(str, size)));
 }