首页
社区
课程
招聘
[讨论]很美, 但代价也大。
发表于: 2010-8-17 22:41 9399

[讨论]很美, 但代价也大。

2010-8-17 22:41
9399
驱动层实现的吧?

[课程]Android-CTF解题方法汇总!

上传的附件:
  • 1.jpg (31.17kb,900次下载)
  • 2.jpg (67.29kb,896次下载)
收藏
免费 0
支持
分享
最新回复 (20)
雪    币: 142
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
任务栏也是一个窗口,得到句柄就可以使他透明化了吧
2010-8-17 23:02
0
雪    币: 243
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
R3层 直接就可以。lz还没明白R0 R3都是干什么的。
2010-8-17 23:46
0
雪    币: 656
活跃值: (448)
能力值: ( LV12,RANK:360 )
在线值:
发帖
回帖
粉丝
4
看久了眼睛不舒服
2010-8-18 01:57
0
雪    币: 189
活跃值: (4810)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
5
R3 下的API 好像是对本进程的,不是外部程序的。
2010-8-18 02:37
0
雪    币: 2105
活跃值: (424)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
6
你好可爱~~~~~`~
2010-8-18 09:26
0
雪    币: 1594
活跃值: (113)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
5楼让我想起了当初学习HOOK时的疑惑,自进程HOOK和全局HOOK
没有理解API,内存,进程。。。
2010-8-18 10:11
0
雪    币: 998
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
8
呵呵,LZ的基本概念还有待加强。
2010-8-18 21:28
0
雪    币: 615
活跃值: (1127)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
9
晕.......
2010-8-19 08:23
0
雪    币: 659
活跃值: (299)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
10
楼主好可爱!
2010-8-19 12:30
0
雪    币: 203
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
11
用 FindWindow("Shell_TrayWnd", NULL) 获取任务栏HWND

然后通过SetLayeredWindowAttributes()函数的alpha参数调整透明度

BOOL SetLayeredWindowAttributes(
HWND hwnd, // handle to the layered window
COLORREF crKey, // specifies the color key
BYTE bAlpha, // value for the blend function
DWORD dwFlags // action
);
2010-8-19 12:55
0
雪    币: 215
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
12
大家都很强大,我就不说啥了,继续喝酒,你也知道我只有喝酒的时候才偶尔回来看看的,平常我都是**脱离这个我曾经的很用心的团体的.

哥们喝酒了去找妞,还有人嗑药,我喝酒了就是愤愤不平来看老帖,哈哈
2010-8-19 23:31
0
雪    币: 189
活跃值: (4810)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
13
谢谢, 又学到了!!!
2010-8-20 02:30
0
雪    币: 435
活跃值: (1207)
能力值: ( LV13,RANK:388 )
在线值:
发帖
回帖
粉丝
14
给我一个句柄,我能改造windows
2010-8-20 09:37
0
雪    币: 521
活跃值: (10)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
15
这个??需要驱动层?没那么麻烦吧
2010-8-20 12:34
0
雪    币: 189
活跃值: (4810)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
16
以前看过 DELPHI 内部的源代码, 当时试过直接用“SetLayeredWindowAttributes”,发现无效,原来还要设个“WS_EX_LAYERED” ,以前也用过“AnimateWindow”,对外部程序无效的, 我还以为这个也一样。

procedure TCustomForm.SetLayeredAttribs;
const
  cUseAlpha: array [Boolean] of Integer = (0, LWA_ALPHA);
  cUseColorKey: array [Boolean] of Integer = (0, LWA_COLORKEY);
var
  AStyle: Integer;
begin
  if not (csDesigning in ComponentState) and
    (Assigned(SetLayeredWindowAttributes)) and HandleAllocated then
  begin
    AStyle := GetWindowLong(Handle, GWL_EXSTYLE);
    if FAlphaBlend or FTransparentColor then
    begin
      if (AStyle and WS_EX_LAYERED) = 0 then
        SetWindowLong(Handle, GWL_EXSTYLE, AStyle or WS_EX_LAYERED);
      SetLayeredWindowAttributes(Handle, FTransparentColorValue, FAlphaBlendValue,
        cUseAlpha[FAlphaBlend] or cUseColorKey[FTransparentColor]);
    end
    else
    begin
      SetWindowLong(Handle, GWL_EXSTYLE, AStyle and not WS_EX_LAYERED);
      RedrawWindow(Handle, nil, 0, RDW_ERASE or RDW_INVALIDATE or RDW_FRAME or RDW_ALLCHILDREN);
    end;
  end;
end;
2010-8-22 18:03
0
雪    币: 189
活跃值: (4810)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
17
刚查了查,“AnimateWindow”,对外部程序无效的,原来是这样:

The window procedures for the window and its child windows should handle any WM_PRINT or WM_PRINTCLIENT messages. Dialog boxes, controls, and common controls already handle WM_PRINTCLIENT. The default window procedure already handles WM_PRINT.

If a child window is displayed partially clipped, when it is animated it will have holes where it is clipped.
2010-8-22 18:52
0
雪    币: 20
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
18
mark
2010-8-23 00:47
0
雪    币: 230
活跃值: (15)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
19
R3 下的API
2010-8-23 00:51
0
雪    币: 141
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
20
果断Win7吧
2010-8-26 12:15
0
雪    币: 89
活跃值: (31)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
21
飘过。。。
2010-8-31 11:30
0
游客
登录 | 注册 方可回帖
返回
//