不知道以前是否有人写过类似的东西,希望这个小程序能方便大家调用API函数
欢迎使用<API精灵 FOR c#>这是我用C#写的第一个
程序,希望大家能够喜欢!(需要.NET环境支持)
主要功能:
简单快速对C#中使用的API函数进行查询,包括 
-------------------------
1。提供在C#中能够直接运行的代码。
2。该函数的中文注释。
3。该函数所需要的DLL库名称。
4。函数与C#中函数的对应关系。
5。API常量查询(给出能够直接在C#中调用的代码)
6。显示对函数对操作系统的支持(WIN9X OR WIN2K)
--------------------------贴心小功能
--------------------------
1。代码中关键字高亮显示,不同关键字显示不同颜色。
2。与C#中对应函数如果过长,则动态滚动显示。
3。动态下拉框提示,直接匹配最合适的函数
4。所有部分均有提示信息,功能效果一目了然
--------------------------可选特殊功能
--------------------------
1。可手动修改函数及其相关信息。
2。可手动添加当前库中没有的API函数及其相关信息
-------------------------
下载地址:
http://happytravel.w100.west263.cn/newsoft/apifairy.rar

解决方案 »

  1.   

    界面和这里某位斑竹作的API Explorer似乎雷同,巧啊.
      

  2.   

    数据库密码:
    ling_feng_work
      

  3.   

    ************** 异常文本 **************
    System.Data.OleDb.OleDbException: 未知
       at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr)
       at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
       at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
       at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
       at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
       at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
       at System.Data.OleDb.OleDbCommand.ExecuteReader()
       at API精灵.Form1.initdatabase()
       at API精灵.Form1.Form1_Load(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** 已加载的程序集 **************
    mscorlib
        程序集版本: 1.0.5000.0
        Win32 版本: 1.1.4322.573
        基本代码: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
    ----------------------------------------
    mscorlib.resources
        程序集版本: 1.0.5000.0
        Win32 版本: 1.1.4322.573
        基本代码: file:///c:/winnt/assembly/gac/mscorlib.resources/1.0.5000.0_zh-chs_b77a5c561934e089/mscorlib.resources.dll
    ----------------------------------------
    API精灵
        程序集版本: 1.0.1537.39251
        Win32 版本: 1.0.1537.39251
        基本代码: file:///C:/DOCUME~1/ADMINI~1.LZW/LOCALS~1/Temp/Rar$EX00.891/api%20fairy/API精灵.exe
    ----------------------------------------
    System.Windows.Forms
        程序集版本: 1.0.5000.0
        Win32 版本: 1.1.4322.573
        基本代码: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
    ----------------------------------------
    System
        程序集版本: 1.0.5000.0
        Win32 版本: 1.1.4322.573
        基本代码: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    System.Data
        程序集版本: 1.0.5000.0
        Win32 版本: 1.1.4322.573
        基本代码: file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
    ----------------------------------------
    System.Drawing
        程序集版本: 1.0.5000.0
        Win32 版本: 1.1.4322.573
        基本代码: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
    ----------------------------------------
    System.Xml
        程序集版本: 1.0.5000.0
        Win32 版本: 1.1.4322.573
        基本代码: file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
    ----------------------------------------
    System.Windows.Forms.resources
        程序集版本: 1.0.5000.0
        Win32 版本: 1.1.4322.573
        基本代码: file:///c:/winnt/assembly/gac/system.windows.forms.resources/1.0.5000.0_zh-chs_b77a5c561934e089/system.windows.forms.resources.dll
    ----------------------------------------************** JIT 调试 **************
    计算机的配置文件(machine.config)的 
     system.windows.forms 节中必须设置 jitDebugging 值。
    编译应用程序时还必须启用\r\n调试。\r\n\r\n例如: \r\n\r\n<configuration>\r\n    <system.windows.forms jitDebugging="true" />\r\n</configuration>\r\n\r\n启用 JIT 调试后,任何未处理的异常\r\n都将被发送到此计算机上注册的 JIT 调试器,\r\n而不是由此对话框处理。\r\n
      

  4.   

    to  hhhh63(hhhh63) 
    你怎么知道我的密码呢?
      

  5.   

    下是能下,多试几次就好了.不过我还是等着开源.想知道一下那个textbox框里出现自动提示的方法.
      

  6.   

    一定要支持----------------------------------------------------------------------
    欢迎试用ASP.NET大文件上传组件(AspnetUpload 1.1 Release & 无刷新进度条)
    http://www.cnblogs.com/bestcomy/archive/2004/06/09/14267.aspx
    http://bestcomy.europe.webmatrixhosting.net
    ----------------------------------------------------------------------
      

  7.   

    to  hhhh63(hhhh63) 
    你怎么知道我的密码呢?_____________________________________
    HEHE   反编译一下就知啦
    先来两段
    public Form1()
    {
          this.fundll = new ArrayList();
          this.funtips = new ArrayList();
          this.funcode = new ArrayList();
          this.funmat = new ArrayList();
          this.funwin9x = new ArrayList();
          this.funwin2k = new ArrayList();
          this.nowselect = 0;
          this.nowtypeselect = 0;
          this.nowpath = Environment.CurrentDirectory + @"\";
          this.dbpassword = "ling_feng_work";
          this.mycommand = new OleDbCommand();
          this.InitializeComponent();
    }
     
    private void initdatabase()
    {
          string text1 = this.nowpath + "winapi.mdb";
          this.tiplist.Items.Clear();
          this.myConnstr = "Provider=Microsoft.Jet.OleDB.4.0;Data Source=" + text1 + ";User Id=admin;Jet OLEDB:Database Password=" + this.dbpassword;
          this.myconn = new OleDbConnection(this.myConnstr);
          this.mysql = "select Fun_name,Fun_dll,Fun_tips,Fun_code,Fun_com,win9x,win2k from winapi";
          using (OleDbConnection connection1 = this.myconn)
          {
                int num1;
                this.myconn.Open();
                this.mycommand.CommandText = this.mysql;
                this.mycommand.Connection = this.myconn;
                OleDbDataReader reader1 = this.mycommand.ExecuteReader();
                for (num1 = 0; reader1.Read(); ++num1)
                {
                      this.tiplist.Items.Add(reader1["Fun_name"]);
                      this.fundll.Add(reader1["fun_dll"].ToString());
                      this.funtips.Add(reader1["fun_tips"].ToString());
                      this.funcode.Add(reader1["fun_code"].ToString());
                      this.funmat.Add(reader1["fun_com"].ToString());
                      this.funwin9x.Add(reader1["win9x"].ToString());
                      this.funwin2k.Add(reader1["win2k"].ToString());
                }
                this.myconn.Close();
                reader1.Close();
          }
    }
     
    支持开源
      

  8.   

    to  GmLibra(平常心) 
    你用的什么工具呀,我怎么找不到这么好的工具呀。告诉大家好吗?
      

  9.   

    支持楼主!
    在给楼主看下关于DOTNET的反编译:http://www.microsoft.com/china/msdn/library/langtool/vbnet/NFissues0311netcodeobfuscation.mspx
      

  10.   

    在.net下实现桌面应用的话,不在非受管理的C++编写代码,然后从受管理的C#调用它,你就很难保证你的代码安全,呵呵,虽然我还没下载你的软件看。不过看楼上的回复就知道你的代码是受管理的,不过,我支持开源.
      

  11.   

    博客园上有位朋友介绍了一个国外的软件,可以完成API插入功能,而且很强大http://www.cnblogs.com/allenlooplee/archive/2004/10/22/55340.html