Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 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);
 }