WinIO 资源包含winio.lib、winio.h、winio.sys、winio.dll文件64/32 位


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.
Make 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.
Make su

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

     文件      13312  2010-05-15 22:54  WinIoBinariesDumpPhys.exe

     文件      13312  2010-05-15 23:34  WinIoBinariesDumpPort.exe

     文件      45568  2010-05-15 23:56  WinIoBinariesWinIo32.dll

     文件       6656  2010-05-08 23:16  WinIoBinariesWinIo32.sys

     文件      44544  2010-05-15 23:56  WinIoBinariesWinIo64.dll

     文件      10920  2010-05-08 23:46  WinIoBinariesWinIo64.sys

     文件      60620  2010-01-19 02:40  WinIoHelpWinIo.chm

     文件       5879  2010-05-16 00:08  WinIoSamplesDumpPhysDumpPhysDumpPhys.csproj

     文件        389  2009-07-23 02:24  WinIoSamplesDumpPhysDumpPhysDumpPhys.manifest

     文件       5801  2010-01-04 00:38  WinIoSamplesDumpPhysDumpPhysForm1.cs

     文件       7705  2010-01-03 22:51  WinIoSamplesDumpPhysDumpPhysForm1.Designer.cs

     文件       5814  2010-01-03 22:51  WinIoSamplesDumpPhysDumpPhysForm1.resx

     文件        475  2010-01-03 01:53  WinIoSamplesDumpPhysDumpPhysProgram.cs

     文件       1293  2010-01-15 02:10  WinIoSamplesDumpPhysDumpPhysPropertiesAssemblyInfo.cs

     文件       2843  2010-05-15 22:52  WinIoSamplesDumpPhysDumpPhysPropertiesResources.Designer.cs

     文件       5612  2010-01-02 23:16  WinIoSamplesDumpPhysDumpPhysPropertiesResources.resx

     文件       1089  2010-05-15 22:52  WinIoSamplesDumpPhysDumpPhysPropertiesSettings.Designer.cs

     文件        249  2010-01-02 23:16  WinIoSamplesDumpPhysDumpPhysPropertiesSettings.settings

     文件       1268  2010-05-16 00:08  WinIoSamplesDumpPhysDumpPhys.sln

    ..A..H.     24576  2010-05-16 00:09  WinIoSamplesDumpPhysDumpPhys.suo

     文件       5879  2010-05-16 00:09  WinIoSamplesDumpPortDumpPortDumpPort.csproj

     文件        389  2009-07-23 02:24  WinIoSamplesDumpPortDumpPortDumpPort.manifest

     文件       5581  2010-01-04 00:38  WinIoSamplesDumpPortDumpPortForm1.cs

     文件       7787  2010-01-04 00:33  WinIoSamplesDumpPortDumpPortForm1.Designer.cs

     文件       5814  2010-01-04 00:33  WinIoSamplesDumpPortDumpPortForm1.resx

     文件        475  2010-01-03 23:02  WinIoSamplesDumpPortDumpPortProgram.cs

     文件       1293  2010-01-15 01:30  WinIoSamplesDumpPortDumpPortPropertiesAssemblyInfo.cs

     文件       2843  2010-05-15 22:54  WinIoSamplesDumpPortDumpPortPropertiesResources.Designer.cs

     文件       5612  2010-01-03 23:02  WinIoSamplesDumpPortDumpPortPropertiesResources.resx

     文件       1089  2010-05-15 22:54  WinIoSamplesDumpPortDumpPortPropertiesSettings.Designer.cs

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)