• 大小: 273KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-15
  • 语言: 其他
  • 标签: winio  winform  

资源简介

winio 3.0版本 内含WinIo64.dll、WinIo64.sys、WinIo32.dll、WinIo32.sys

资源截图

代码片段和文件信息

// ---------------------------------------------------- //
//                      WinIo v3.0                      //
//          Direct Hardware Access Under Windows        //
//           Copyright 1998-2010 Yariv Kaplan           //
//               http://www.internals.com               //
// ---------------------------------------------------- //

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Diagnostics;

namespace DumpPhys
{
    public unsafe partial class Form1 : Form
    {
        [DllImport(“kernel32.dll“)]
        private extern static IntPtr LoadLibrary(String DllName);

        [DllImport(“kernel32.dll“)]
        private extern static IntPtr GetProcAddress(IntPtr hModule String ProcName);

        [DllImport(“kernel32“)]
        private extern static bool FreeLibrary(IntPtr hModule);

        [UnmanagedFunctionPointer(CallingConvention.StdCall)]
        private delegate bool InitializeWinIoType();

        [UnmanagedFunctionPointer(CallingConvention.StdCall)]
        private delegate bool GetPhysLongType(IntPtr PhysAddr UInt32 *pPhysVal);

        [UnmanagedFunctionPointer(CallingConvention.StdCall)]
        private delegate bool SetPhysLongType(IntPtr PhysAddr UInt32 PhysVal);

        [UnmanagedFunctionPointer(CallingConvention.StdCall)]
        private delegate bool ShutdownWinIoType();

        IntPtr hMod;

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            // Check if this is a 32 bit or 64 bit system
            if (IntPtr.Size == 4)
            {
                hMod = LoadLibrary(“WinIo32.dll“);
                txtPhysAddr.MaxLength = 8;
                txtPhysAddr.Text = “00000000“;
                
            }
            else if (IntPtr.Size == 8)
            {
                hMod = LoadLibrary(“WinIo64.dll“);
                txtPhysAddr.MaxLength = 16;
                txtPhysAddr.Text = “0000000000000000“;
            }

            if (hMod == IntPtr.Zero)
            {
                MessageBox.Show(“Can‘t find WinIo dll.\nMake sure the WinIo library files are located in the same directory as your executable file.“ “DumpPhys“ MessageBoxButtons.OK MessageBoxIcon.Error);
                this.Close();
            }

            IntPtr pFunc = GetProcAddress(hMod “InitializeWinIo“);

            if (pFunc != IntPtr.Zero)
            {
                InitializeWinIoType InitializeWinIo = (InitializeWinIoType)Marshal.GetDelegateForFunctionPointer(pFunc typeof(InitializeWinIoType));
                bool Result = InitializeWinIo();

                if (!Result)
                {
                    MessageBox.Show(“Error returned from InitializeWinIo.\nMake su

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......     13312  2017-07-05 11:27  winio-master\Binaries\DumpPhys.exe

    .......     13312  2017-07-05 11:27  winio-master\Binaries\DumpPort.exe

    .......     45568  2017-07-05 11:27  winio-master\Binaries\WinIo32.dll

    .......      6656  2017-07-05 11:27  winio-master\Binaries\WinIo32.sys

    .......     44544  2017-07-05 11:27  winio-master\Binaries\WinIo64.dll

    .......     10920  2017-07-05 11:27  winio-master\Binaries\WinIo64.sys

    .......     60620  2017-07-05 11:27  winio-master\Help\WinIo.chm

    .......        49  2017-07-05 11:27  winio-master\README.md

     文件       5879  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\DumpPhys.csproj

     文件        389  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\DumpPhys.manifest

     文件       5801  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\Form1.cs

     文件       7705  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\Form1.Designer.cs

     文件       5814  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\Form1.resx

     文件        475  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\Program.cs

     文件       1293  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\Properties\AssemblyInfo.cs

     文件       2843  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\Properties\Resources.Designer.cs

     文件       5612  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\Properties\Resources.resx

     文件       1089  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\Properties\Settings.Designer.cs

     文件        249  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys\Properties\Settings.settings

     文件       1268  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys.sln

    ..A..H.     24576  2017-07-05 11:27  winio-master\Samples\DumpPhys\Backup\DumpPhys.v12.suo

     文件      13824  2018-06-19 17:54  winio-master\Samples\DumpPhys\DumpPhys\bin\Release\DumpPhys.exe

     文件      22016  2018-06-19 17:54  winio-master\Samples\DumpPhys\DumpPhys\bin\Release\DumpPhys.pdb

     文件      22704  2018-06-19 17:57  winio-master\Samples\DumpPhys\DumpPhys\bin\Release\DumpPhys.vshost.exe

     文件        389  2017-07-05 11:27  winio-master\Samples\DumpPhys\DumpPhys\bin\Release\DumpPhys.vshost.exe.manifest

     文件      45568  2017-07-05 11:27  winio-master\Samples\DumpPhys\DumpPhys\bin\Release\WinIo32.dll

     文件       6656  2017-07-05 11:27  winio-master\Samples\DumpPhys\DumpPhys\bin\Release\WinIo32.sys

     文件      44544  2017-07-05 11:27  winio-master\Samples\DumpPhys\DumpPhys\bin\Release\WinIo64.dll

     文件      10920  2017-07-05 11:27  winio-master\Samples\DumpPhys\DumpPhys\bin\Release\WinIo64.sys

     文件       5979  2018-06-19 17:52  winio-master\Samples\DumpPhys\DumpPhys\DumpPhys.csproj

............此处省略79个文件信息

评论

共有 条评论