資源簡介
仿黑客帝國的屏保,下落的字符不是日文,是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
評論
共有 條評論