~ruther/csharp-dll-injector

csharp-dll-injector/DllUtils/Exceptions/InjectionException.cs -rw-r--r-- 754 bytes
e5041312 — Rutherther Update README.md 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace DllUtils.Exceptions
{
    public class InjectionException : Exception
    {
        public InjectionException()
        {
        }

        public InjectionException(string message) : base(message)
        {
        }

        public InjectionException(string message, Exception innerException) : base(message, innerException)
        {
        }

        protected InjectionException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }

        public int LatestError => Marshal.GetLastWin32Error();
    }
}
Do not follow this link