上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 36 下一页
摘要: #include <Windows.h> #include <psapi.h> int main() { DWORD process_ID = 0; WCHAR process_name[MAX_PATH] = {}; HWND notepad = FindWindow(NULL, L"print. 阅读全文
posted @ 2020-09-24 10:39 strive-sun 阅读(2102) 评论(0) 推荐(0) 编辑
摘要: PeekNamedPipe: 将数据从命名管道或匿名管道复制到缓冲区中,而不将其从管道中删除。它还返回有关管道中数据的信息。 示例: #include <iostream> #include <windows.h> #include <vector> using namespace std; int 阅读全文
posted @ 2020-09-23 18:06 strive-sun 阅读(3041) 评论(0) 推荐(0) 编辑
摘要: Dll: // dllmain.cpp : Defines the entry point for the DLL application. #include "pch.h" #include <sstream> std::wstringstream wss; std::wstring str; c 阅读全文
posted @ 2020-09-10 18:30 strive-sun 阅读(372) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h> #include <shobjidl_core.h> #include <windowsx.h> #include <shlobj_core.h> #pragma comment(lib,"Shell32.lib") #define MAX_LOADSTRI 阅读全文
posted @ 2020-09-10 10:16 strive-sun 阅读(297) 评论(0) 推荐(0) 编辑
摘要: RegisterRawInputDevices 可以注册鼠标或者键盘等输入的信息,然后GetRawInputData可以获取传来的WM_INPUT消息中的输入信息。 代码参考: #include <windows.h> #include <iostream> using namespace std; 阅读全文
posted @ 2020-09-08 16:56 strive-sun 阅读(1894) 评论(0) 推荐(0) 编辑
摘要: 微软文档介绍说, 安全日志在其他两个重要方面与其他日志不同。首先,在默认配置中,它受到强大的访问控制列表(ACL)和特权检查的保护,这将可以读取其内容的个人的范围限制为本地系统,管理员和安全特权的持有者。其次,也是最重要的一点,只允许一个实体(本地安全机构(LSA))写入安全日志。这实际上意味着,每 阅读全文
posted @ 2020-09-08 16:42 strive-sun 阅读(881) 评论(0) 推荐(0) 编辑
摘要: 原话: [此功能已过时,仅支持与16位Windows向后兼容。对于32位Windows应用程序,不必释放使用LoadResource加载的资源。如果在32或64位Windows系统上使用,此函数将返回FALSE。 解释: 特定于资源的专用功能,例如LoadBitmap()将实际资源“后处理”为可用的 阅读全文
posted @ 2020-09-08 09:41 strive-sun 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 任务:创建一个进程,并在进程内创建一个文本,再创建另一个进程来监控第一个进程内的文本变化 //Process 1 #include <windows.h> #include <iostream> int wmain(int argc, wchar_t* argv[]) { std::string b 阅读全文
posted @ 2020-08-28 15:06 strive-sun 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 对好几个月之前看的链表进行了复习。 还是创建头结点,然后依次插入结点。 个人感觉最重要的是对指针/地址的掌握。 只有知道地址的概念,链表的问题也就迎刃而解。 #include <iostream> using namespace std; struct List { int data; List* 阅读全文
posted @ 2020-08-25 17:32 strive-sun 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 可以使用LookupAccountNameA获取sid。 LookupAccountName函数接受系统名称和帐户作为输入。它检索该帐户的安全标识符(SID)以及在其上找到该帐户的域的名称。 使用此api无需在LocalSystem帐户的上下文中运行。 代码示例:(C ++) #include <W 阅读全文
posted @ 2020-08-21 16:03 strive-sun 阅读(1539) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 36 下一页