• 大小: 7.56MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-17
  • 语言: 其他
  • 标签: WinIO  

资源简介

WinIO 资源包(含winio.lib、winio.h、winio.sys、winio.dll文件)64/32 位都已生成

资源截图

代码片段和文件信息

// ---------------------------------------------------- //
//                      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  2010-05-15 22:54  WinIo\Binaries\DumpPhys.exe

     文件      13312  2010-05-15 23:34  WinIo\Binaries\DumpPort.exe

     文件      45568  2010-05-15 23:56  WinIo\Binaries\WinIo32.dll

     文件       6656  2010-05-08 23:16  WinIo\Binaries\WinIo32.sys

     文件      44544  2010-05-15 23:56  WinIo\Binaries\WinIo64.dll

     文件      10920  2010-05-08 23:46  WinIo\Binaries\WinIo64.sys

     文件      60620  2010-01-19 02:40  WinIo\Help\WinIo.chm

     文件       5879  2010-05-16 00:08  WinIo\Samples\DumpPhys\DumpPhys\DumpPhys.csproj

     文件        389  2009-07-23 02:24  WinIo\Samples\DumpPhys\DumpPhys\DumpPhys.manifest

     文件       5801  2010-01-04 00:38  WinIo\Samples\DumpPhys\DumpPhys\Form1.cs

     文件       7705  2010-01-03 22:51  WinIo\Samples\DumpPhys\DumpPhys\Form1.Designer.cs

     文件       5814  2010-01-03 22:51  WinIo\Samples\DumpPhys\DumpPhys\Form1.resx

     文件        475  2010-01-03 01:53  WinIo\Samples\DumpPhys\DumpPhys\Program.cs

     文件       1293  2010-01-15 02:10  WinIo\Samples\DumpPhys\DumpPhys\Properties\AssemblyInfo.cs

     文件       2843  2010-05-15 22:52  WinIo\Samples\DumpPhys\DumpPhys\Properties\Resources.Designer.cs

     文件       5612  2010-01-02 23:16  WinIo\Samples\DumpPhys\DumpPhys\Properties\Resources.resx

     文件       1089  2010-05-15 22:52  WinIo\Samples\DumpPhys\DumpPhys\Properties\Settings.Designer.cs

     文件        249  2010-01-02 23:16  WinIo\Samples\DumpPhys\DumpPhys\Properties\Settings.settings

     文件       1268  2010-05-16 00:08  WinIo\Samples\DumpPhys\DumpPhys.sln

    ..A..H.     24576  2010-05-16 00:09  WinIo\Samples\DumpPhys\DumpPhys.suo

     文件       5879  2010-05-16 00:09  WinIo\Samples\DumpPort\DumpPort\DumpPort.csproj

     文件        389  2009-07-23 02:24  WinIo\Samples\DumpPort\DumpPort\DumpPort.manifest

     文件       5581  2010-01-04 00:38  WinIo\Samples\DumpPort\DumpPort\Form1.cs

     文件       7787  2010-01-04 00:33  WinIo\Samples\DumpPort\DumpPort\Form1.Designer.cs

     文件       5814  2010-01-04 00:33  WinIo\Samples\DumpPort\DumpPort\Form1.resx

     文件        475  2010-01-03 23:02  WinIo\Samples\DumpPort\DumpPort\Program.cs

     文件       1293  2010-01-15 01:30  WinIo\Samples\DumpPort\DumpPort\Properties\AssemblyInfo.cs

     文件       2843  2010-05-15 22:54  WinIo\Samples\DumpPort\DumpPort\Properties\Resources.Designer.cs

     文件       5612  2010-01-03 23:02  WinIo\Samples\DumpPort\DumpPort\Properties\Resources.resx

     文件       1089  2010-05-15 22:54  WinIo\Samples\DumpPort\DumpPort\Properties\Settings.Designer.cs

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

评论

共有 条评论