我需要在 C# DLL 注入期间在游戏中显示一个表单

问题描述 投票:0回答:0

在 C# 中,我正在编写一个 DLL,它打开一个表单以注入到程序中。一切都准备好了,但是当我执行注入时,没有可用的代码来显示表单。

你认识可以给我提供代码的人吗?我打算创建一个类似于 Steam 的 Shift+Tab GUI。我目前面临的唯一问题是,当 DLL 注入游戏时,我的表单不会自动显示。

using System;
using System.Windows.Forms;

namespace MyDLL
{
    public class MyForm : Form
    {
        public MyForm()
        {
            Text = "SteamUI";
            Width = 400;
            Height = 300;
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            
        }
    }
}
c# dll dll-injection
© www.soinside.com 2019 - 2024. All rights reserved.