资源简介

仿黑客帝国的屏保,下落的字符不是日文,是ASNI码

资源截图

代码片段和文件信息

// PingmuBaohu.cpp : 定义应用程序的入口点。
//

#include “stdafx.h“
#include “PingmuBaohu.h“
#include   
#include 
#pragma comment (lib “imm32.lib“)

#define MAX_LOADSTRING 100

// 全局变量:
HINSTANCE hInst; // 当前实例
TCHAR sztitle[MAX_LOADSTRING]; // 标题栏文本
TCHAR szWindowClass[MAX_LOADSTRING]; // 主窗口类名
int                 screenWscreenH;            //屏幕宽度和高度
char g_password[17] = {0};
//内存DC变量
HBITMAP             memmap;
HDC                 memdc;
HBRUSH              bkbrush;
HPEN                pen1pen2;
// 此代码模块中包含的函数的前向声明:
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE int);
LRESULT CALLBACK WndProc(HWND UINT WPARAM LPARAM);
INT_PTR CALLBACK About(HWND UINT WPARAM LPARAM);
int encry_password(char *password int size);//简易加密解密函数
int decry_password(char *password int size);
int EnableTask(int enable);//禁用和启用任务管理器
void DrawMain(HWND hWnd);
void CreateMemoryDC(HWND hWndHDC hdc);

int APIENTRY _tWinMain(_In_ HINSTANCE hInstance
                     _In_opt_ HINSTANCE hPrevInstance
                     _In_ LPTSTR    lpCmdLine
                     _In_ int       nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
/*
char strtemp[]=“1234567“;
encry_password(strtempstrlen(strtemp));

decry_password(strtempstrlen(strtemp));
*/
//在这里写对屏幕保护程序命令的处理
char str[MAX_PATH]={0};
strncpy(strlpCmdLine2);
if(strcmp(str“/c“) == 0)
{
DialogBox(hInst MAKEINTRESOURCE(IDD_SETMIMABOX) NULL About);
exit(0);
}
else if(strcmp(str“/p“) == 0)
{
EnableTask(0);
exit(0);
}
  // TODO: 在此放置代码。
MSG msg;
HACCEL hAccelTable;

// 初始化全局字符串
LoadString(hInstance IDS_APP_title sztitle MAX_LOADSTRING);
LoadString(hInstance IDC_PINGMUBAOHU szWindowClass MAX_LOADSTRING);
MyRegisterClass(hInstance);

// 执行应用程序初始化:
if (!InitInstance (hInstance nCmdShow))
{
return FALSE;
}

hAccelTable = LoadAccelerators(hInstance MAKEINTRESOURCE(IDC_PINGMUBAOHU));

// 主消息循环:
while (GetMessage(&msg NULL 0 0))
{
if (!TranslateAccelerator(msg.hwnd hAccelTable &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}

return (int) msg.wParam;
}



//
//  函数: MyRegisterClass()
//
//  目的: 注册窗口类。
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{
WNDCLASSEX wcex;

wcex.cbSize = sizeof(WNDCLASSEX);

wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = NULL;
wcex.hCursor = LoadCursor(NULL IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_BACKGROUND+1);
wcex.lpszMenuName = NULL;
wcex.lpszClassName = szWindowClass;
wcex.hIconSm = NULL;

return RegisterClassEx(&wcex);
}

//
//   函数: InitInstance(HINSTANCE int)
//
//   目的: 保存实例句柄并创建主窗口
//
//   注释:
//
//        在此函数中,我们在全局变量中保存实例句柄并
//        创建和显示主程序窗口。
//
BOOL InitIns

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-08-02 15:38  PingmuBaohu\
     目录           0  2017-07-24 23:38  PingmuBaohu\Debug\
     目录           0  2017-07-24 23:39  PingmuBaohu\PingmuBaohu\
     文件         900  2017-07-20 16:30  PingmuBaohu\PingmuBaohu.sln
     文件       27136  2017-08-02 15:38  PingmuBaohu\PingmuBaohu.v11.suo
     目录           0  2017-08-02 15:38  PingmuBaohu\PingmuBaohu\Debug\
     文件          94  2017-08-02 15:38  PingmuBaohu\PingmuBaohu\Debug\PingmuBaohu.log
     文件       10036  2017-07-24 23:25  PingmuBaohu\PingmuBaohu\PingmuBaohu.aps
     文件       12708  2017-08-02 12:20  PingmuBaohu\PingmuBaohu\PingmuBaohu.cpp
     文件          39  2017-07-20 16:30  PingmuBaohu\PingmuBaohu\PingmuBaohu.h
     文件        2998  2012-06-05 22:11  PingmuBaohu\PingmuBaohu\PingmuBaohu.ico
     文件        6100  2017-07-24 23:25  PingmuBaohu\PingmuBaohu\PingmuBaohu.rc
     文件        4835  2017-07-24 21:55  PingmuBaohu\PingmuBaohu\PingmuBaohu.vcxproj
     文件        2011  2017-07-23 23:12  PingmuBaohu\PingmuBaohu\PingmuBaohu.vcxproj.filters
     文件         374  2017-07-23 00:43  PingmuBaohu\PingmuBaohu\PingmuBaohu.vcxproj.user
     目录           0  2017-08-02 15:38  PingmuBaohu\PingmuBaohu\Release\
     文件        1459  2017-08-02 15:38  PingmuBaohu\PingmuBaohu\Release\PingmuBaohu.Build.CppClean.log
     文件         415  2017-08-02 15:38  PingmuBaohu\PingmuBaohu\Release\PingmuBaohu.log
     文件        1946  2017-07-24 23:25  PingmuBaohu\PingmuBaohu\resource.h
     文件        2998  2012-06-05 22:11  PingmuBaohu\PingmuBaohu\small.ico
     文件         216  2017-07-20 16:30  PingmuBaohu\PingmuBaohu\stdafx.cpp
     文件         420  2017-07-20 16:30  PingmuBaohu\PingmuBaohu\stdafx.h
     文件         236  2017-07-20 16:30  PingmuBaohu\PingmuBaohu\targetver.h
     目录           0  2017-08-02 15:38  PingmuBaohu\Release\
     文件       20992  2017-08-02 12:20  PingmuBaohu\Release\炫酷屏保.scr

评论

共有 条评论