会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
温暖了寂寞
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
56
57
58
59
60
61
62
63
下一页
2020年6月17日
WIN32创建进程CreateProcess
摘要: BOOL CreateProcess( LPCTSTR 【lpApplicationName】, //指向可执行模块名称的指针 LPTSTR 【lpCommandLine】, //指向命令行字符串的指针 LPSECURITY_ATTRIBUTES 【lpProcessAttributes】, //指
阅读全文
posted @ 2020-06-17 18:23 温暖了寂寞
阅读(1020)
评论(0)
推荐(0)
2020年6月16日
WIN通过消息实现互斥同步CreateEvent和SetEvent
摘要: // Event0616.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <WINDOWS.H> #include <iostream> HANDLE hEventS
阅读全文
posted @ 2020-06-16 23:09 温暖了寂寞
阅读(233)
评论(0)
推荐(0)
WIN32生产消费经典同步但是以消耗时间为代价
摘要: // Event0616.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <WINDOWS.H> HANDLE hEvent; HANDLE hMutex; DWOR
阅读全文
posted @ 2020-06-16 19:15 温暖了寂寞
阅读(116)
评论(0)
推荐(0)
WIN32互斥体CreateMutex以及限制多开
摘要: CreateMutex( LPSECURITY_ATTRIBUTES 【lpMutexAttributes】, //指向安全属性的指针 BOOL 【bInitialOwner】, //标志初始所有权 LPCTSTR 【lpName】 //指向mutex对象名称的指针 ); // Mutex0616.
阅读全文
posted @ 2020-06-16 16:58 温暖了寂寞
阅读(1255)
评论(0)
推荐(0)
WIN32临界区线程锁EnterCriticalSection和LeaveCriticalSection
摘要: //创建全局变量结构体 CRITICAL_SECTION cs; //初始化变量结构体 InitializeCriticalSection(&cs); //循环之前判断是否拿到令牌 EnterCriticalSection(&cs); //代码区 //释放令牌 LeaveCriticalSectio
阅读全文
posted @ 2020-06-16 16:52 温暖了寂寞
阅读(287)
评论(0)
推荐(0)
GetThreadContext和SetThreadContext
摘要: #include "stdafx.h" #include <iostream> #include <windows.h> using namespace std; DWORD WINAPI ThreadProc(LPVOID lpParamter) { for (int i = 0;i<10;i++
阅读全文
posted @ 2020-06-16 14:04 温暖了寂寞
阅读(2087)
评论(0)
推荐(0)
2020年6月15日
远程线程注入
摘要: // remote06.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "windows.h" BOOL func(DWORD ProcessID,char* Dll
阅读全文
posted @ 2020-06-15 19:08 温暖了寂寞
阅读(183)
评论(0)
推荐(0)
EnumProcessModules 使用 获取进程的路径
摘要: EnumProcessModules Function 获得指定进程中所有模块的句柄。 语法 BOOL WINAPI EnumProcessModules(in HANDLE hProcess,out HMODULE *lphModule,in DWORD cb,out LPDWORD lpcbNe
阅读全文
posted @ 2020-06-15 17:13 温暖了寂寞
阅读(2664)
评论(0)
推荐(0)
GetModuleBaseName用法
摘要: The GetModuleBaseName function retrieves the base name of the specified module.DWORD GetModuleBaseName(HANDLE hProcess, // handle to processHMODULE hM
阅读全文
posted @ 2020-06-15 17:12 温暖了寂寞
阅读(962)
评论(0)
推荐(0)
GetCursorPos函数的使用方法、应用实例(转)
摘要: 原文 https://blog.csdn.net/baidu_38494049/article/details/82930099 如果有小伙伴看不懂太多英语,还想知道GetCursorPos函数的用法,那么往下看吧。msdn网址:https://docs.microsoft.com/zh-cn/wi
阅读全文
posted @ 2020-06-15 14:17 温暖了寂寞
阅读(2370)
评论(0)
推荐(0)
上一页
1
···
56
57
58
59
60
61
62
63
下一页
公告