最近一直在学习 Windows编程,结果就写了一个恶心人的弹窗小程序。技术是一把双刃剑,用的好就是正途,用的不好就是害人。
#if defined(UNICODE) && !defined(_UNICODE)
#define _UNICODE
#elif defined(_UNICODE) && !defined(UNICODE)
#define UNICODE
#endif
#include <tchar.h>
#include <windows.h>
#include <process.h>
/* Declare Windows procedure */
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
HWND hwnd;
int cxClient, cyclient;
int WINAPI WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR szCmdLine,
int iCmdShow)
{
//char path[255] = {0};
//GetModuleFileNameA(GetModuleHandle(NULL),path,255);
static TCHAR szAppName[] = TEXT("RndRctMT");
MSG msg;
WNDCLASS wndclass; //定义一个窗口对象
wndclass.style &nb