当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: http://blog.csdn.net/yiruoyun/ar
 

 

    摘要:http://blog.csdn.net/yiruoyun/archive/2004/10/17/140219.aspx 钩子其实就是调用一下api而已: 1、安装钩子:   setwindowshookex 函数原形:hhook setwindowshookex( int idhook, // 钩子类型, hookproc lpfn, // 钩子函数地址 instance hmod, ......
 ·[引用]c#中来应用hook     »显示摘要«
    摘要:http://blog.csdn.net/yiruoyun/archive/2004/10/18/141530.aspx 钩子(hook),是windows消息处理机制的一个平台,应用程序可以在上面设置子程以监视指定窗口的某种消息,而且所监视的窗口可以是其他进程所创建的。当消息到达后,在目标窗口处理函数之前处理它。钩子机制允许应用程序截获处理window消息或特定事件。 关于hook的详细介绍......


[引用]该C#程序可将文本文件藏于位图中,也可导出之!
http://blog.csdn.net/yiruoyun/archive/2004/10/18/141514.aspx

【程序编程相关:C++ Builder开发点滴

【推荐阅读:keyup事件的e

//使用方法: 【扩展信息:javascript控制页面控件隐藏显示

// bmpsafe.exe /file2bmp (input bmp) (input file to hide) [output file]

//bmpsafe.exe /bmp2file (data bmp) [output file]

using system;

using system.io;

using system.drawing;

public class bitmap24writer

{

 protected bitmap bmp;

 protected int curx, cury, irgb;

 protected uint bitsleft, bitstotal;

 protected byte r, g, b;

 public bitmap24writer(bitmap bmp)

 {

  if (bmp.pixelformat != system.drawing.imaging.pixelformat.format24bpprgb)

   throw new argumentexception();

  // assign vars

  curx       = cury = irgb = 0;

  this.bmp   = bmp;

  bitsleft   = bitstotal = (uint)bmp.height * (uint)bmp.width * 3;

 }

 public uint getunusedbitcount()

 {

  return bitsleft;

 }

 public uint getmaxbitstoragecount()

 {

  return bitstotal;

 }

 public bitmap getbitmap()

 {

  return bmp;

 }

 public bool writebyte(byte by)

 {

  if (bitsleft < 8)

   return false;

  uint bits2do = 8;

  for (; curx < bmp.width; curx++)

  {

   if (cury >= bmp.height)

    cury = 0;

   for (; cury < bmp.height; cury++)

   {

    if (bits2do == 0)

     return true;

    color col = bmp.getpixel(curx, cury);

    r = col.r;

    g = col.g;

    b = col.b;

    for ( ; ; )

    {

     byte curbit = (byte)(by & 1);


...   下一页
    摘要: 我这里提出的开发环境的只是我个人喜欢的,并不一定是最好的,仅供参考。以下都以我的系统为准: fedora core2, gnome。 1:linux下的 软件安装。 在linux下安装有两种方法:自己编译源代码安装和用rpm安装。一般软件都提供了rpm包下载。因为我懒,所以都是采用rpm安装从来没有自己编译安装过。 rpm 安装方法很简单,在命令行下输入: rpm -ivh packname.r......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE