![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
练习代码
文章平均质量分 52
alick
这个作者很懒,什么都没留下…
展开
-
win32练习-判断系统类型
#include "stdafx.h"#include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){coutOSVERSIONINFOEX osver = {0};osver.dwOSVersionInfoSize = sizeof(osve原创 2015-04-07 19:07:50 · 429 阅读 · 0 评论 -
初学win32GUI 练习源代码
#include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPSTR lpCmdLine,int iCmdShow){TCHAR szAppName[] = TEXT("Hel原创 2015-05-06 19:09:26 · 936 阅读 · 0 评论 -
Win32 系统下进程内存共享
// Shared.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std;class Map{private:HANDLE FileMap;PVOID pView;public:Map(){}~Map(){ CloseHand原创 2015-04-09 20:16:04 · 552 阅读 · 0 评论 -
Dll远程注入
// Inject.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include BOOL EnableDebugPriv(LPCTSTR name) { HANDLE h; TOKEN_PRIVILEGES tp; LUID id;原创 2015-04-23 19:58:26 · 595 阅读 · 0 评论 -
asm-elf 练习hello,world练练手感
.datahello: .string "Hello,world\n".globl mainmain: movl $4,%eax movl $1,%ebx movl $hello,%ecx movl $12,%edx int $0x80 ret原创 2015-04-07 19:39:14 · 450 阅读 · 0 评论 -
windows核心编程学习笔记-上下文练习
#include "stdafx.h"#include "Context.h"#include #include #include #define MAX_LOADSTRING 100DWORD WINAPI thread(PVOID pvParam){for(int i=0; i1+1+1+1;}return 0;}int原创 2015-04-07 19:04:34 · 354 阅读 · 0 评论 -
win32练习 - 虚拟地址映射
#include "stdafx.h"#include #include "windows.h" using namespace std;VOID *pAddress=NULL; TCHAR path[512]={0}; MEMORY_BASIC_INFORMATION t; int _tmain(int argc, _TCHAR* arg原创 2015-04-07 19:16:08 · 537 阅读 · 0 评论 -
win32练习-线程挂起
#include "stdafx.h"#include "SuspendProcess.h"#include #include #include #define MAX_LOADSTRING 100PROCESS_INFORMATION pi;TCHAR list[100];void SuspendProcess(DWORD dwProces原创 2015-04-07 19:12:57 · 739 阅读 · 0 评论 -
win32练习-事件
#include "stdafx.h"#include #include #include HANDLE SERVER;HANDLE CLIENT;char buf[1024];DWORD WINAPI Server(PVOID pvPrarm){char temp[1024];BOOL fShutdown = FALSE;while(!fS原创 2015-04-07 19:15:21 · 368 阅读 · 0 评论 -
win32练习 - CreateThreadpoolWait()
#include "stdafx.h"#include #include #include HANDLE Event;PTP_WAIT pWaitItem;VOID CALLBACK WaitCallBack(PTP_CALLBACK_INSTANCE pInstance,PVOID Context,PTP_WAIT Wait,TP_WAIT_RESULT原创 2015-04-07 19:09:44 · 1259 阅读 · 0 评论 -
win32练习-信号量
// Semaphore.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "Semaphore.h"#include #include #define MAX_LOADSTRING 100 HANDLE Semaphore;DWORD WINAPI Thread_1(PVOID pvPa原创 2015-04-07 19:18:42 · 664 阅读 · 0 评论 -
win32练习-createprcoess()
// CreateProcess.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include int _tmain(int argc, _TCHAR* argv[]){/*DWORD dwExitCode;STARTUPINFO si = {sizeof(si)};PROC原创 2015-04-07 19:19:50 · 476 阅读 · 0 评论 -
win32 时钟
#include #include #include #define TWO_PI (3.1415926)LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);VOID WINAPI ThreadPionter(PVOID param);int WINAPI WinMain(HINSTANCE hInst原创 2015-06-06 11:05:37 · 437 阅读 · 0 评论