屏幕截图代码c++ builder

  • G3_751851
    了解作者
  • 1.1MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-05 04:10
    上传日期
c++builder环境下的截图程序,使用vcl 封装的windows GDI进行编程
PMjietu_C++builder.rar
  • jietu
  • FMJieTu.~bpr
    4.7KB
  • Unit1.h
    2.6KB
  • dllunit.~h
    589B
  • Project1.~cpp
    925B
  • hookdll.~c
    2.2KB
  • dllunit.cpp
    2.1KB
  • FMJieTu.cpp
    925B
  • Unit1.ddp
    51B
  • Project1.~bpr
    4.6KB
  • hookdll.obj
    4.1KB
  • hookunit.~cpp
    2.2KB
  • FMJieTu.res
    22.4KB
  • dllunit.~cpp
    2.1KB
  • hookdll.lib
    11.8KB
  • hookunit.~h
    544B
  • extrares.res
    6.2KB
  • hookdll.tds
    256KB
  • jietu.rar
    708.9KB
  • hookdll.bpr
    3.7KB
  • maletdow.cur
    326B
  • Unit1.obj
    28.2KB
  • Project1.res
    22.4KB
  • hookdll.~bpr
    3.7KB
  • shubiao.rc
    91B
  • FMJieTu.tds
    704KB
  • Unit1.~ddp
    51B
  • hookdll.c
    2.2KB
  • Unit1.dfm
    102.1KB
  • hookdll.dll
    14KB
  • malet.cur
    326B
  • hookunit.obj
    24.9KB
  • Project1.obj
    10KB
  • dllunit.h
    589B
  • FMJieTu.~cpp
    925B
  • hookdll.~bpf
    107B
  • hookunit.cpp
    2.2KB
  • Unit1.~dfm
    102.1KB
  • FMJieTu.obj
    7.9KB
  • BG.bmp
    2.4KB
  • hookdll.bpf
    107B
  • Unit1.~cpp
    15.9KB
  • extrares.rc
    421B
  • Project1.cpp
    925B
  • Unit1.~h
    2.6KB
  • hookdll.res
    876B
  • FMJieTu.exe
    570KB
  • FMJieTu.bpr
    4.7KB
  • Unit1.cpp
    15.9KB
  • dllunit.obj
    24.9KB
  • shubiao.RES
    3.2KB
内容介绍
//--------------------------------------------------------------------------- #include <windows.h> //--------------------------------------------------------------------------- // Important note about DLL memory management when your DLL uses the // static version of the RunTime Library: // // If your DLL exports any functions that pass String objects (or structs/ // classes containing nested Strings) as parameter or function results, // you will need to add the library MEMMGR.LIB to both the DLL project and // any other projects that use the DLL. You will also need to use MEMMGR.LIB // if any other projects which use the DLL will be performing new or delete // operations on any non-TObject-derived classes which are exported from the // DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling // EXE's to use the BORLNDMM.DLL as their memory manager. In these cases, // the file BORLNDMM.DLL should be deployed along with your DLL. // // To avoid using BORLNDMM.DLL, pass string information using "char *" or // ShortString parameters. // // If your DLL uses the dynamic version of the RTL, you do not need to // explicitly add MEMMGR.LIB as this will be done implicitly for you //--------------------------------------------------------------------------- #pragma argsused HINSTANCE inst=0;//连接文件的模块handle,固定行程 HHOOK hHook;//挂上的hook handle int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved) { inst = hinst; //当此DLL被调用or结束 switch (reason) { case DLL_PROCESS_ATTACH ://此DLL构造函数 // ShowMessage("dll 加载"); //取得执行此dll的特定程序handle break; case DLL_PROCESS_DETACH://此DLL析构函数 break; case DLL_THREAD_ATTACH: //此DLL多线程构造函数 break; case DLL_THREAD_DETACH: //此DLL多线程析构函数 break; } return 1; } //---------------------------------------------------------------------------
评论
    相关推荐