beta-songsxg.blog.chinaunix.net
s_x_g
全部博文(194)
Moblin(1)
Storage(1)
InfiniBand(7)
VPN(1)
ROOTKIT(4)
PHP(4)
Java(0)
C++(0)
C(2)
ASM(1)
Qt(1)
Ubuntu(0)
LinuxMint(0)
LFS(0)
Debian(0)
SuSE(0)
Kernel(0)
Redhat(0)
Tips(3)
Win7(0)
Win2008(0)
WinVista(0)
Win2003(0)
WinXP(0)
Win2000(0)
Win9X(0)
DOS(0)
2010年(8)
2009年(71)
2008年(109)
2007年(6)
Bsolar
Marshal_
deuso
adaslove
zhu19911
kallytin
linuxDOS
cjym2013
fangwm
分类: WINDOWS
2010-03-25 16:46:30
.text:004001F8 public start .text:004001F8 start proc near .text:004001F8 push 2 ; lParam .text:004001FA push 0F170h ; wParam .text:004001FF push 112h ; Msg .text:00400204 push 0FFFFh ; hWnd .text:00400209 call PostMessageA .text:0040020E retn .text:0040020E start endp
#include <windows.h> void main(){ PostMessageA((HWND)0xFFFF, 0x112, 0xF170, 2); }
#include <windows.h> //HWND_BROADCAST 0xFFFF //WM_SYSCOMMAND 0x0112 //SC_MONITORPOWER 0xF170 #define MONITOR_ON -1 #define MONITOR_OFF 2 #define MONITOR_STANBY 1 void main(){ PostMessageA(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, MONITOR_OFF); //PostMessageA(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, MONITOR_STANBY); Sleep(3); PostMessageA(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, MONITOR_ON); }
上一篇:Configure参数补充的一种方法
下一篇:没有了
jha3342015532013-06-02 22:21:01
看这地址,严重怀疑这个人是用汇编写好了,然后直接手动处理了PE文件,然后将之PE头code段合并在一起的.领:你这段代码在win7 x64下vs08命令行编译运行后,不断的关显示器开显示器,,,,大概十几次以后,显示器回复正常,不知道是哪里的bug,,,,
登录 注册