zzzz
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Management;
- using System.Runtime.InteropServices;
- using System.Threading;
- //Bài viết đăng tại http://diendan.congdongcviet.com/showthread.php?t=34797
- namespace HideProcess
- {
- {
- {
- if (!Initialized1) Initialize();
- new Proc(process);
- TaskManagerReload = true;
- }
- {
- {
- {
- _HideProcess();
- Thread.Sleep(10);
- }
- }
- )).Start();
- Initialized1 = true;
- }
- {
- {
- IntPtr lhWndParent = Process.GetProcessesByName("taskmgr")[0].MainWindowHandle;
- Api.WindowPlacement winp = new Api.WindowPlacement();
- winp.length = Marshal.SizeOf(winp);
- Api.GetWindowPlacement(lhWndParent, ref winp);
- bool visible = winp.showCmd == 1 || winp.showCmd == 3;
- IntPtr lhWndProcessList = Api.GetDlgItem(lhParent, 1009);
- IntPtr hMenu = Api.GetMenu(lhWndParent);
- IntPtr hViewMenu = Api.GetSubMenu(hMenu, 2);
- IntPtr hUpdateSpeed = Api.GetSubMenu(hViewMenu, 1);
- uint hRefreshNow = Api.GetMenuItemID(hViewMenu, 0);
- if (hUpdateSpeed != IntPtr.Zero)
- {
- Api.SendMessage(lhWndParent, 273, (IntPtr)Api.GetMenuItemID(hUpdateSpeed, 3), IntPtr.Zero);
- Api.RemoveMenu(hViewMenu, (uint)hUpdateSpeed, 1);
- }
- Api.EnableMenuItem(hMenu, hRefreshNow, 1);
- if (visible) Api.LockWindowUpdate(lhWndProcessList);
- if ((DateTime.Now - TaskManagerTime).TotalMilliseconds > 1000)
- {
- Api.SendMessage(lhWndParent, 273, (IntPtr)hRefreshNow, IntPtr.Zero);
- TaskManagerTime = DateTime.Now;
- }
- GC.Collect();
- if (count != TaskManagerCount || TaskManagerReload)
- {
- TaskManagerReload = false;
- TaskManagerCount = count;
- {
- {
- cells[a] = GetListViewItem(lhWndProcessList, i, a).ToLower();
- }
- {
- {
- }
- if (f1 && f2)
- {
- Api.SendMessage(lhWndProcessList, 4104, (IntPtr)i--, IntPtr.Zero);
- TaskManagerCount--;
- }
- }
- }
- }
- if (visible) Api.LockWindowUpdate(IntPtr.Zero);
- }
- catch { }
- }
- {
- Api.LvItem lvItem = new Api.LvItem();
- IntPtr lpLocalBuffer = Marshal.AllocHGlobal(1024);
- uint pid;
- Api.GetWindowThreadProcessId(hWnd, out pid);
- IntPtr lpRemoteBuffer = Api.VirtualAllocEx(hProcess, IntPtr.Zero, 1024, 0x1000, 4);
- lvItem.mask = 1;
- lvItem.iItem = index;
- lvItem.iSubItem = subitem;
- lvItem.cchTextMax = 50;
- Api.SendMessage(hWnd, 0x1005, IntPtr.Zero, lpRemoteBuffer);
- Api.ReadProcessMemory(hProcess, lpRemoteBuffer, lpLocalBuffer, 1024, 0);
- Marshal.FreeHGlobal(lpLocalBuffer);
- Api.VirtualFreeEx(hProcess, lpRemoteBuffer, 0, 0x8000);
- Api.CloseHandle(hProcess);
- return ret;
- }
- {
- {
- int returnVal = Convert.ToInt32(obj.InvokeMethod("GetOwner", args));
- }
- return "";
- }
- {
- public Proc(Process proc)
- {
- Name = proc.ProcessName.ToLower();
- User = GetProcessUser(proc).ToLower();
- }
- }
- }
- {
- [DllImport("user32.dll", SetLastError = true)]
- [DllImport("user32.dll")]
- [DllImport("user32.dll")]
- [DllImport("user32.dll")]
- [DllImport("user32.dll")]
- [DllImport("user32.dll")]
- [DllImport("user32.dll")]
- [DllImport("user32.dll", CharSet = CharSet.Auto)]
- [DllImport("user32.dll", CharSet = CharSet.Auto)]
- [DllImport("user32.dll", CharSet = CharSet.Auto)]
- [DllImport("user32.dll")]
- [DllImport("user32.dll")]
- [DllImport("user32.dll")]
- [DllImport("user32.dll")]
- [DllImport("kernel32.dll")]
- [DllImport("kernel32.dll")]
- [DllImport("kernel32.dll")]
- [DllImport("kernel32.dll")]
- [DllImport("kernel32.dll")]
- [DllImport("kernel32.dll", SetLastError = true)]
- [DllImport("kernel32.dll")]
- [DllImport("kernel32.dll")]
- [DllImport("user32.dll", SetLastError = true)]
- [DllImport("user32.dll")]
- [StructLayout(LayoutKind.Sequential)]
- {
- public IntPtr pszText;
- }
- [StructLayout(LayoutKind.Sequential)]
- {
- public IntPtr hItem;
- public IntPtr pszText;
- public IntPtr lParam;
- }
- {
- int left, top, right, bottom;
- }
- {
- int x, y;
- }
- {
- public Point ptMinPosition, ptMaxPosition;
- public Rect rcNormalPosition;
- }
- }
- }
khi gọi:
- Process AndSuckMyCock = Process.GetProcessById(Process.GetCurrentProcess().Id);
- HideIt.Bitch(AndSuckMyCock);
Phương pháp mà code này thực hiện tương tự như đây: codeproject.com/KB/system/Hack_Windows_Task_Manager.aspx
SendMessage(hWnd,LVM_DELETECOLUMN,(WPARAM)0,0);
zzzz的更多相关文章
- Flash Professional 报错 TypeError: Error #1034: 强制转换类型失败:无法将 xxxx@zzzz 转换为 yyy
通常是因为xxx yyy 两个不同链接名的元件 使用了同一个属性名
- Js动态获取iframe子页面的高度////////////////////////zzzz
Js动态获取iframe子页面的高度 Js动态获取iframe子页面的高度总结 问题的缘由 产品有个评论列表引用的是个iframe,高度不固定于是引发这个总结. 方法1:父级页面获取子级页面的高度 ...
- iOS原生APP与H5+JS交互////////////////////zzzz
原生代码中直接加载页面 1. 具体案例 加载本地/网络HTML5作为功能介绍页 2. 代码示例 //本地 -(void)loadLocalPage:(UIWebView*)webView ...
- 画布清理////////////////////////////zzzz
HTML5画布清理,重绘,旧的线条也会出现 <!DOCTYPE html> <html> <head> <title>HTLM5</title&g ...
- 什么是FOUC?如何避免FOUC?///////////////////////////zzzz
一个新的名词叫做 FOUC 浏览器样式闪烁,之前也听说过一些类似的东西,比如样式突变等等,但这东西竟然有学名的..什么是FOUC(文档样式短暂失效)?如果使用import方法对CSS进行导入,会导致 ...
- [IOS 开发] NSDateFormatter的格式字符串 -- 《整理的笔记》
在ios开发中, OBjective-C中的NSDate是一个挺讨厌的类型, 自己找不到转换成字符串的类型,还得带一个NSDateFormatter的类型. 官方文档上对NSDateFormatter ...
- 数字与字母混合生成流水号规则--ASP实现
最近遇到一个比较奇葩的事情,自己所负责的一个系统出现一个流水号用完的问题:正常情况下,流水号用完应该增加多位来解决这个问题.鉴于各种因素,最后决定:位数不变,增加字母进去,当数字用完后,会出现字母,而 ...
- SQL 归来
1. PL/SQL 转义 select order#, ……… from **** select col1 from A where col2 like '%\_keywors%' escape ' ...
- Codeforces CF#628 Education 8 E. Zbazi in Zeydabad
E. Zbazi in Zeydabad time limit per test 5 seconds memory limit per test 512 megabytes input standar ...
随机推荐
- java中的多线程——进度2
package src;/*多线程总结:1,进程和线程的概念. |--进程: |--线程:2,jvm中的多线程体现. |--主线程,垃圾回收线程,自定义线程.以及他们运行的代码的位置 ...
- demo_01 css3中的radius
css属性:border-radius :border:边框:radius:弧度:所以这个属性的意思很明了. 下面实现一个小demo: <!doctype html> <html&g ...
- LNMP1.2一键安装教程
系统需求: CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian Linux系统 需要2GB以上硬盘剩余空间 128M以上内存,Xen的需要有SWAP,OpenVZ的另外 ...
- about家庭智能设备部分硬件模块功能共享【协同工作】solution
本人设备列表: Onda tablet {Android} wifi Desktop computer {win7.centos7} 外接蓝牙adapter PS interface 键盘.鼠标{与同 ...
- linux awk命令学习
. awk的运行过程 ) awk_script的组成: ① awk_script可以由一条或多条awk_cmd组成,两条awk_cmd之间一般以NEWLINE分隔 ② awk_cmd由两部分组成: a ...
- hdu 4542 小明系列故事——未知剩余系
小明系列故事——未知剩余系 题意:操作0表示某数有n个约数,操作1为某数有n个非约数:n <= 47777,若是存在小于2^62的数符合,则输出该数,否则若是不存在输出Illegal,若是大于2 ...
- const用法
一.const作用 二.const用法 1.修饰一般常量 修饰符const可以用在类型说明符前,也可以用在类型说明符后. 例如: ; ; 2.修饰常数组 修饰符const可以用在类型说明符前,也 ...
- 【Error listenerStart】 Error listenerStart Context [] startup failed due to previous errors
发给 报错信息 八月 12, 2015 11:58:19 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandle ...
- 在使用Fake framework的时候,为什么有一些函数没有生产mock呢?
在使用Visual studio 2012 的Fake framework 做单元测试的时候,你会发现有一些函数没有生产Stub 或者 Shim的版本,这可能是由于Fake的一些限制导致的,但如何知道 ...
- 几个.net的GUI控件库
https://github.com/firstfloorsoftware/mui http://wpftoolkit.codeplex.com/ https://github.com/fluentr ...