private static MINIDUMP_USER_STREAM_INFORMATION PrepareUserStream(string dumpComment) { MINIDUMP_USER_STREAM userStream = new MINIDUMP_USER_STREAM(); userStream.Type = MINIDUMP_STREAM_TYPE.CommentStreamW; userStream.Buffer = Marshal.StringToHGlobalUni(dumpComment); userStream.BufferSize = (uint)(dumpComment.Length + 1) * 2; return(new MINIDUMP_USER_STREAM_INFORMATION(userStream)); }
private static MINIDUMP_USER_STREAM_INFORMATION PrepareUserStream(string dumpComment) { MINIDUMP_USER_STREAM userStream = new MINIDUMP_USER_STREAM(); userStream.Type = MINIDUMP_STREAM_TYPE.CommentStreamW; userStream.Buffer = Marshal.StringToHGlobalUni(dumpComment); userStream.BufferSize = (uint)(dumpComment.Length + 1) * 2; return new MINIDUMP_USER_STREAM_INFORMATION(userStream); }