Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ReKey.cpp
Package: MFCReKey(1).rar [view]
Upload User: jinbin898
Upload Date: 2022-06-24
Package Size: 89k
Code Size: 2k
Category:
Game Hook Crack
Development Platform:
Visual C++
- // ReKey.cpp : 定义应用程序的类行为。
- //
- #include "stdafx.h"
- #include "ReKey.h"
- #include "ReKeyDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- // CReKeyApp
- BEGIN_MESSAGE_MAP(CReKeyApp, CWinAppEx)
- ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
- END_MESSAGE_MAP()
- // CReKeyApp 构造
- CReKeyApp::CReKeyApp()
- {
- // TODO: 在此处添加构造代码,
- // 将所有重要的初始化放置在 InitInstance 中
- }
- // 唯一的一个 CReKeyApp 对象
- CReKeyApp theApp;
- // CReKeyApp 初始化
- BOOL CReKeyApp::InitInstance()
- {
- // 如果一个运行在 Windows XP 上的应用程序清单指定要
- // 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
- //则需要 InitCommonControlsEx()。否则,将无法创建窗口。
- INITCOMMONCONTROLSEX InitCtrls;
- InitCtrls.dwSize = sizeof(InitCtrls);
- // 将它设置为包括所有要在应用程序中使用的
- // 公共控件类。
- InitCtrls.dwICC = ICC_WIN95_CLASSES;
- InitCommonControlsEx(&InitCtrls);
- CWinAppEx::InitInstance();
- // 标准初始化
- // 如果未使用这些功能并希望减小
- // 最终可执行文件的大小,则应移除下列
- // 不需要的特定初始化例程
- // 更改用于存储设置的注册表项
- // TODO: 应适当修改该字符串,
- // 例如修改为公司或组织名
- //SetRegistryKey(_T("应用程序向导生成的本地应用程序"));
- //仅运行应用程序的一个实例
- HWND hWndOld = ::FindWindow(NULL,_T("Rekey"));
- if (IsWindow(hWndOld))
- {
- ::MessageBox(NULL,_T("已经有一个程序实例在运行了!"),_T("提示"),MB_OK);
- ::ShowWindow(hWndOld,SW_NORMAL);
- ::SetForegroundWindow(hWndOld);
- return FALSE;
- }
- CReKeyDlg dlg;
- m_pMainWnd = &dlg;
- /*INT_PTR nResponse = */dlg.DoModal();
- // 没有确定取消按钮了,一下代码不需要啦
- // if (nResponse == IDOK)
- // {
- // // TODO: 在此放置处理何时用
- // // “确定”来关闭对话框的代码
- // }
- // else if (nResponse == IDCANCEL)
- // {
- // // TODO: 在此放置处理何时用
- // // “取消”来关闭对话框的代码
- // }
- // 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
- // 而不是启动应用程序的消息泵。
- return FALSE;
- }