public override byte[] ToBytes() => ByteHelpers.Combine(
     new byte[]
 {
     Ver.ToByte(),
     NMethods.ToByte()
 },
     Methods.ToBytes());
Пример #2
0
        public static IntPtr LoadLibrary(string path)
        {
            IntPtr Handle = NMethods.LoadLibrary(path);

            if (Handle == IntPtr.Zero)
            {
                throw new Exception("Error load library. WinAPI error code: " + Marshal.GetLastWin32Error());
            }

            return(Handle);
        }