摘要: BOOL CreateProcess( LPCTSTR 【lpApplicationName】, //指向可执行模块名称的指针 LPTSTR 【lpCommandLine】, //指向命令行字符串的指针 LPSECURITY_ATTRIBUTES 【lpProcessAttributes】, //指 阅读全文
posted @ 2020-06-17 18:23 温暖了寂寞 阅读(984) 评论(0) 推荐(0) 编辑
摘要: // 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 温暖了寂寞 阅读(223) 评论(0) 推荐(0) 编辑
摘要: // 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 温暖了寂寞 阅读(115) 评论(0) 推荐(0) 编辑
摘要: CreateMutex( LPSECURITY_ATTRIBUTES 【lpMutexAttributes】, //指向安全属性的指针 BOOL 【bInitialOwner】, //标志初始所有权 LPCTSTR 【lpName】 //指向mutex对象名称的指针 ); // Mutex0616. 阅读全文
posted @ 2020-06-16 16:58 温暖了寂寞 阅读(1151) 评论(0) 推荐(0) 编辑
摘要: //创建全局变量结构体 CRITICAL_SECTION cs; //初始化变量结构体 InitializeCriticalSection(&cs); //循环之前判断是否拿到令牌 EnterCriticalSection(&cs); //代码区 //释放令牌 LeaveCriticalSectio 阅读全文
posted @ 2020-06-16 16:52 温暖了寂寞 阅读(235) 评论(0) 推荐(0) 编辑
摘要: #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 温暖了寂寞 阅读(1981) 评论(0) 推荐(0) 编辑
摘要: // 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 温暖了寂寞 阅读(178) 评论(0) 推荐(0) 编辑
摘要: EnumProcessModules Function 获得指定进程中所有模块的句柄。 语法 BOOL WINAPI EnumProcessModules(in HANDLE hProcess,out HMODULE *lphModule,in DWORD cb,out LPDWORD lpcbNe 阅读全文
posted @ 2020-06-15 17:13 温暖了寂寞 阅读(2322) 评论(0) 推荐(0) 编辑
摘要: 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 温暖了寂寞 阅读(867) 评论(0) 推荐(0) 编辑
摘要: 原文 https://blog.csdn.net/baidu_38494049/article/details/82930099 如果有小伙伴看不懂太多英语,还想知道GetCursorPos函数的用法,那么往下看吧。msdn网址:https://docs.microsoft.com/zh-cn/wi 阅读全文
posted @ 2020-06-15 14:17 温暖了寂寞 阅读(2137) 评论(0) 推荐(0) 编辑