2018年1月10日 星期三

C# 讓程式不顯示在工作管理員中

C# 讓程式不顯示在工作管理員中

https://dotblogs.com.tw/hacker_mission/2017/12/04/090607

Findwindow 

http://www.blueshop.com.tw/board/FUM20050124192253INM/BRD20101225233503KLX.html



using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;


namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        [DllImport("user32.dll", EntryPoint = "FindWindow", CharSet = CharSet.Auto)]
        private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            IntPtr  hwd1 ;
                  

            hwd1 = FindWindow(null, "未命名 - 記事本");


            if (hwd1 == IntPtr.Zero)
            {
               MessageBox.Show ("找不到");

            }
            else
            {
                MessageBox.Show("找到了");
            }
        }
    }
}


其他
https://dotblogs.com.tw/optimist9266/2011/06/06/27194

http://blog.csdn.net/soief/article/details/4094476

https://ask.helplib.com/c-Sharp/post_1139423

http://www.blueshop.com.tw/board/FUM20050124192253INM/BRD201210151025017BV.html

https://social.msdn.microsoft.com/Forums/zh-TW/d70d8991-68be-462d-af6a-566b1504281b/winform?forum=233
http://www.codebye.com/c%E6%80%8E%E6%A0%B7%E5%9C%A8%E4%BB%BB%E5%8A%A1%E7%AE%A1%E7%90%86%E5%99%A8%E4%B8%AD%E9%9A%90%E8%97%8F%E4%B8%BB%E7%A8%8B%E5%BA%8F%E7%9A%84%E8%BF%9B%E7%A8%8B%E5%90%8D.html


沒有留言:

張貼留言

WPF聊天室应用(ASP.NET Core SignalR)

  WPF聊天室应用(ASP.NET Core SignalR) https://www.bilibili.com/video/BV1Q741187Si?p=2 https://www.bilibili.com/video/BV1UV411e75T?from=search&...