吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 4975|回复: 14
收起左侧

[其他转载] 一行代码去掉某界面软件弹窗

  [复制链接]
xingkongtianyu 发表于 2020-1-22 18:19
一个强大的界面库,去掉试用弹窗:
使用的是.net hook方法:
使用代码:

```csharp
using System;
using System.Windows.Forms;

namespace AlexDevexpressToolTest
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Alex.DevexpressTools.Hit.Init();
            Application.Run(new Form1());
        }
    }
}

```
工具方法:
```csharp
using DotNetDetour;

namespace Alex.DevexpressTools
{
        public class Hit
        {
                public static void Init()
                {
                        MethodHook.Install();
                }
        }

        public class Utils : IMethodHook
        {
                #region 去掉弹窗
                [HookMethod("DevExpress.Utils.About.Utility", null, null)]
                public static bool ShouldShowAbout()
                {
                        return false;
                }
               
                [OriginalMethod]
                public static bool ShouldShowAbout_Original()
                {
                        return false;
                }
                #endregion
        }
}

```

免费评分

参与人数 1吾爱币 +1 收起 理由
adlink29 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

wtujoxk 发表于 2020-1-22 19:49
梦想的咸鱼 发表于 2020-1-22 19:37
说的太清楚,所以不知道咋用

一个界面库,正常使用会有弹窗,使用hook在弹窗之前把弹窗去掉!
 楼主| xingkongtianyu 发表于 2020-1-23 20:41
wtujoxk 发表于 2020-1-22 19:45
弹窗是去掉了,请问一下试用的有没有功能的限制呢?

基本没有功能限制,有试用期限。
hua3354 发表于 2020-1-22 19:32
梦想的咸鱼 发表于 2020-1-22 19:37
说的太清楚,所以不知道咋用
wtujoxk 发表于 2020-1-22 19:45
弹窗是去掉了,请问一下试用的有没有功能的限制呢?
xmtt2008 发表于 2020-1-22 20:42
真心不知道怎么用!!
软件学习者007 发表于 2020-1-22 21:10
是很好,但是太复杂了。
皈依一 发表于 2020-1-22 21:40
感谢楼主的分享精神
ciker_li 发表于 2020-1-22 23:06
.NET没接触过
 楼主| xingkongtianyu 发表于 2020-1-23 20:38
这个没加密,hook只是一个思路,pj涉及版权,你懂的!
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-5 00:57

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表